t-template
v1.0.2
Published
Simple template system for static websites
Downloads
4
Readme
t template system
Description
T is a "Outside server" simple template system for static websites.
- it reads all html file wihtin the folder
- searchs for template markers
- injects the content of t/templateFile.html between the markers
Example of a marker
<!-- MainHeader -->
<!-- /MainHeader -->
t
would try to find the file ./t/MainHeader
and inject it's contents
between the two html commentes .
Run it
run the command ./t.js
to copy the templates under t/
folders
Easy to work with
To hide the templated code Sublime 3's syntaxFold plugin,
{
"config":[
{
"scope": "text.html.basic",
"startMarker":"<!-- ",
"endMarker":"<!-- /"
},
]
}