Skip to content

cscport/convert-html-to-angular-template-array

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Convert HTML to Angular Template Array

It's annoying to write template html like this for every Angular components:

return {
  template: [
    '<div class="row">',
      '<div class="small-12 columns">',
        'Hello world!',
      '</div>',
    '</div>'
  ].join('')
}

With this module, write plain html, and convert it to a Angular template array.

To use:

$ node html2nga.js <source html> <output directory>

If no output directory is provided, then it writes to the current directory with a randomly generated filename.

This project is still very early, so it is still basic in terms of features and user experience.

TODO:

  • Add escaping for single quotation marks.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published