Skip to content

Component sub-command to pre-compile all your .ejs files to requirable js files. Sorry does not work on Windows :(

Notifications You must be signed in to change notification settings

btknorr/component-compile

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

component-compile

Component sub-command to pre-compile all your .ejs files to requirable js files. Sorry does not work on Windows :(

Installation

With Component previously installed:

  $ [sudo] npm install -g component-compile

Pre-compile all your ejs files recursively

  $ component compile <dir>

Render your html

  //template.ejs has previously been compiled to template.js
  var Template = require('./template');
  var html = Template({
    title:'Pre-compiling is cool'
  });

About

Component sub-command to pre-compile all your .ejs files to requirable js files. Sorry does not work on Windows :(

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published