mat-freemarker
freemarker plugin for mat
Last updated 3 years ago by zhuping.zp .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install mat-freemarker 
SYNC missed versions from official npm registry.

mat-freemarker

Installation

npm install --save-dev mat-freemarker

Basic Usage

var mat   = require('mat')
var freemarker = require('mat-freemarker')

mat.task('freemarker', function() {
  mat.url([/\.ftl/])
    .use(freemarker({
      viewRoot: './template',
      dataRoot: './fakeData',
      options: {
        numberFormat: '0.############'
      }
    }))
})

Options

  • viewRoot: ftl模板目录
  • dataRoot: 需要渲染的数据目录,文件名及路径与ftl模板保持一致,保存为 .json 文件
  • See the freemarkerjs options

Current Tags

  • 0.0.3                                ...           latest (3 years ago)

2 Versions

  • 0.0.3                                ...           3 years ago
  • 0.0.1                                ...           4 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 3
Last Day 0
Last Week 2
Last Month 1
Dependencies (1)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |