Skip to content

yoxjs/yox-template-loader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

98 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

yox-template-loader

If you want to use the runtime version of yoxjs, you have to precompile the template at first.

This is a webpack loader for precompiling yox template file.

Install

NPM

npm i yox-template-loader

YARN

yarn add yox-template-loader

Usage

xx.hbs

.hbs is recommended, that is a Handlebars file extname

<div class="example">
  {{msg}}
</div>

webpack.config.js

rules: [
  {
    test: /\/src\/.*?\.hbs$/,
    use: [{
      loader: 'yox-template-loader'
    }]
  }
]

About

webpack loader for yox template file

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published