Skip to content
This repository was archived by the owner on May 17, 2026. It is now read-only.

Latest commit

 

History

13 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This repository has been migrated. For ongoing updates, please see https://github.com/thinkjs/thinkjs/tree/master/packages/think-template-handlebars.

think-template-handlebars

handlebars template adapter for ThinkJS 2.x

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.

About

handlebars template adapter for ThinkJS 2.x

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages