0.0.4 • Published 7 years ago

angular-swig v0.0.4

Weekly downloads
-
License
BSD2
Repository
-
Last release
7 years ago

##Angular-Swig ###whats included:

  • swig - service that provides access to Swig object
  • render - factory that takes a template as a string, and context as an object and returns the rendered string
  • writeOut - factory that given a filename and data will write it to the system
  • renderTemplate - factory that combines render and writeOut, to write a rendered template to the filesystem
  • loadTemplate - factory that asyncronysly loads content from files for use in the render service
  • swigProvider - provider to allow changing swigOptions

to use just add angular.swig.app as a dependency:

app = angular.module 'my.cool.app',['angular.swig.app']

app.controller 'MyCtrl',['renderTemplate',class MyCtrl
    constructor:(@renderTemplate)->    
]