File tree Expand file tree Collapse file tree 1 file changed +5
-8
lines changed
Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -36,13 +36,10 @@ template_dir = "theme/templates"
3636Create your template files in the same directory as your book.
3737
3838``` html
39- <!-- ./theme/templates/language_list.html -->
40- <ul >
41- {% for identifier, language_name in get_context(key="output.i18n.languages")
42- %}
43- <li >{{ identifier }}: {{ language_name }}</li >
44- {% endfor %}
45- </ul >
39+ <!-- ./theme/templates/hello_world.html -->
40+ <div >
41+ Hello world!
42+ </div >
4643```
4744
4845### Using templates in ` index.hbs `
@@ -54,7 +51,7 @@ it to ignore Tera templates using `{{{{raw}}}}` blocks:
5451{{{{raw}}}}
5552{% set current_language = ctx.config.book.language %}
5653<p >Current language: {{ current_language }}</p >
57- < p >All languages: {% include "language_list .html" %}</ p >
54+ {% include "hello_world .html" %}
5855{{{{/raw}}}}
5956```
6057
You can’t perform that action at this time.
0 commit comments