jade-angular-template-assets

2019-10-09 admin

jade-angular-template-assets是什么

什么是jade-angular-template-assets,Jade Angular Templates for asset-rack

jade-angular-template-assets使用教程帮助文档

Jade-Angular-Template-Assets

Use Jade for Angular Templates in Asset Rack!

Usage

$ npm install jade-angular-template-assets

jadeTemplates = require('jade-angular-template-assets');

var assets = [
  new jadeTemplates.JadeAngularTemplatesAsset({
    url: '/scripts/templates.js',
    module: 'ModuleTemplates',
    dirname: 'src/templates',
    locals: {},
    rename: function(name) {
      path.basename(name, '.jade')
    },
    debug: false,
    pretty: false
  })
];

app.use(new rack.Rack(assets))

本站文章除注明转载外,均为本站原创或编译。欢迎任何形式的转载,但请务必注明出处。

转载请注明:文章转载自 JavaScript中文网 [https://www.javascriptcn.com]

本文地址:https://www.javascriptcn.com/read-76934.html

文章标题:jade-angular-template-assets

回到顶部