readme   overview   note   template   config  

NoteIsSite Sample - template


Current Position: HomePage >> template

readme
overview
note
template
config

Template

May I use template files with my custom file names?

Yes. Please refer to site_config, and notes for the following options:

1index_template = "index.template.html"
2category_template = "category.template.html"
3content_template = "content.template.html"
4404 = "404.html"
5500 = "500.html"

May I use another asset directory for static resources?

Yes. Please refer to site_config, and notes for the following options:

1static_dirs = [ "assets" ]

You can put as many directories as you wish.

How to reference data in template?

We use the golang template systems. The original data structures are defined in template/template.go . Samples are in template/sample.


Copyright (C) 2024. Powered By Streamlet Studio.