string-includer

1.0.2 • Public • Published

String includer

Parse html/js/css files - and parse include strings - to compile to a new file

Install

  npm install string-includer -S

Usage

 
  var stringinclude = require('string-includer');
  var cont = fs.readFileSync('./test/test.html');
  
  // test.html = 
  //  include partial-1.html
  //  include partial-2.html
  //  contents of original file
  
  var newstring = stringinclude(cont,'./test');
  
  // newstring = 
  //  contents of partial-1
  //  contents of partial-2
  //  contents of original file
 
 

License

MIT © Dmitri Kunin

/string-includer/

    Package Sidebar

    Install

    npm i string-includer

    Weekly Downloads

    4

    Version

    1.0.2

    License

    ISC

    Last publish

    Collaborators

    • dkunin