1.0.2 • Published 7 years ago

t-template v1.0.2

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

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":"<!-- /"
        },
    ]
}
1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago