259
edits
(New page: = Project Templates = == What are these for? == When a new user signs up, they automatically get a sample project and BespinSettings. New projects are created for these, and then a "proj...) |
|||
| Line 24: | Line 24: | ||
== Dynamic values == | == Dynamic values == | ||
In the example above, you undoubtedly noticed the rather odd name of the README file: <tt>README-{{project.name}}.txt</tt>. When installing a template, the Python server uses the | In the example above, you undoubtedly noticed the rather odd name of the README file: <tt>README-<nowiki>{{project.name}}</nowiki>.txt</tt>. When installing a template, the Python server uses the [http://jinja.pocoo.org/2/ Jinja2] template engine on both the filenames and the file contents. | ||
So, if this template is installed into a project called "helloworld", you would see README-helloworld.txt at the top level of the project. | So, if this template is installed into a project called "helloworld", you would see README-helloworld.txt at the top level of the project. | ||
edits