Settings

Choose language

template("alias")

template
This function inserts another pattern script into the current pattern script.



You may use existing templates coded by Sewist staff or templates coded by community and marked public.

If you are not happy with the offered basic construction, you may create your own code and save it as template by using the settings button.

You may choose to make your template public or reserve it for your own use. If you make your pattern code public, others will be able to see the code, but not edit it. They will also be able to create a copy of the code and adapt it to their use.

In case you make a template public and hide the code, other users will only be able to use the reference to this template, but they won't see the code and won't be able to create a copy of it.



To insert a template, place cursor in the code window at the place, after which you wish to insert a template.

Click the template button in top panel and select the template you wish to insert.

Redraft the pattern.

Pay attention to console right below the code window. In many cases the template will post some information there letting you know what settings you might tweak, e.g.

Previous article

comment (string)

Back to category

Programming

Next article

grade(size name,(size value,float),(size value, float))