add nick
[laas.git] / src / templates / README
1 We use a special directory structure here that allows you to define
2 your own set of templates than inherit from a common base.
3
4 To create your own templates:
5
6 Create your new directory as a sibling of base/
7     `mkdir my_templates`
8
9 Now you can override any template file in base/ by creating a file of the same name in my_templates.
10
11 For example, to replace base/booking/booking_table.html,
12 you would create my_templates/booking/booking_table.html. Your template will be loaded instead of the original.
13
14
15 You can also inherit from the base templates. For example, if you
16 wanted to add to base/dashboard/landing.html, you can create
17 a template at my_templates/dashboard/landing.html and add this line to
18 the top of the file:
19     {% extends base/dashboard/landing.html %}
20
21 This way you can add in new {% block %} tags to the parents and define only
22 the new content you need without affecting the default behavior.
23
24
25 When your template directory is ready, you must add it to your config.env