1.2.0 • Published 8 years ago

think-template-handlebars v1.2.0

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

think-template-handlebars

handlebars template adapter for ThinkJS

Install

npm install think-template-handlebars

How to use

register adapter

import HandlebarseAdapter from 'think-template-handlebars';
think.adapter('template', 'handlebars', HandlebarseAdapter);

add above code in bootstrap file, like src/common/boostrap/adapter.js.

change view type

change view type in file src/common/config/view.js,

export default {
  type: 'handlebars',
  adapter: {
    handlebars: { //handlebars options

    }
  }
}

precompiled

you can precompile handlebars template before deployed. it will auto identified when render template.

1.2.0

8 years ago

1.1.0

8 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago