Skip to content
/ prejst Public

precompile underscore template jst files into a AMD module

License

Notifications You must be signed in to change notification settings

piza/prejst

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

prejst

precompile underscore template jst files into a AMD module

how to install?

sudo npm install -g prejst

how to use?

    mkdir tempate
    cd template 
    touch index.jst
    mkdir login
    cd login
    vi login.jst
    cd ..

    vi package.json

    {
         "name": "template",
         "version": "1.0.0",
         "dependencies": {
             "prejst": "1.0.2"
         },
         "prejst-config": {
             "output": "../scripts/template",
             "charset": "utf-8",
             "compress": true,
             "runtime": "template.js",
             "minify": false
         }
     }

    cd ..
    prejst ./template
    cat scripts/template/template.js
    //you will see below content
    temp{
            index:function(){},
            login:{
            login:function(){}
            }
        }

study from tmodjs

About

precompile underscore template jst files into a AMD module

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published