# radic-handlebars
[![Travis build status](https://img.shields.io/travis/RobinRadic/node-radic-handlebars.svg)](http://travis-ci.org/RobinRadic/node-radic-handlebars)
[![NPM Version](https://img.shields.io/npm/v/radic-handlebars.svg)](http://npmjs.org/package/radic-handlebars)
[![NPM Downloads](https://img.shields.io/npm/dm/radic-handlebars.svg)](http://npmjs.org/package/radic-handlebars)
[![Goto documentation](http://img.shields.io/badge/goto-documentation-orange.svg)](http://robin.radic.nl/node-radic-handlebars)
[![Goto repository](http://img.shields.io/badge/goto-repository-orange.svg)](https://github.com/robinradic/node-radic-handlebars)
[![License](http://img.shields.io/badge/license-MIT-blue.svg)](http://radic.mit-license.org)
### Overview
`radic-handlebars` is a collection of third-party handlebars modules. It allows you to get a handlebars object with only the module helpers you define. Like this:
```javascript
var rhbs = require('radic-handlebars');
// You could check out what helper modules you can register
console.log(rhbs.getAllHelperKeys());
// returns something like: ['inheritance', 'registrar', 'paginate', 'helpers2', 'layouts', 'comparison', 'pluralize', 'helpers', 'eachitems', 'twitter', 'slugify', 'regexp', 'prettify', 'fileset', 'i18nliner', 'fs', 'array', 'json', 'analyticsjs']
var handlebars = rhbs.getHandlebars(['comparison', 'array', 'layouts']);
// returns handlebars with the helpers those modules provide registered.
```
## How to use
### Documentation
- [Detailed documentation](http://robin.radic.nl/node-radic-handlebars)
### Installation
```bash
# Local install into project for using libraries and helpers
npm install --save radic-handlebars
```
### License
Copyright 2014 Robin Radic
[MIT Licensed](http://radic.mit-license.org)
没有合适的资源?快使用搜索试试~ 我知道了~
node-radic-handlebars:将一堆车把模块放在一起-源码
共12个文件
js:3个
json:2个
jshintrc:1个
需积分: 5 0 下载量 3 浏览量
2021-06-28
15:56:04
上传
评论
收藏 8KB ZIP 举报
温馨提示
激进的车把 概述 radic-handlebars是第三方把手模块的集合。 它允许您仅使用您定义的模块助手来获取车把对象。 像这样: var rhbs = require ( 'radic-handlebars' ) ; // You could check out what helper modules you can register console . log ( rhbs . getAllHelperKeys ( ) ) ; // returns something like: ['inheritance', 'registrar', 'paginate', 'helpers2', 'layouts', 'comparison', 'pluralize', 'helpers', 'eachitems', 'twitter', 'slugify', 'regexp', 'pret
资源详情
资源评论
资源推荐
收起资源包目录
node-radic-handlebars-master.zip (12个子文件)
node-radic-handlebars-master
.gitignore 145B
README.md 2KB
jsdoc.json 675B
test
index.js 3KB
LICENSE 1KB
Gruntfile.js 1KB
.jshintrc 351B
package.json 2KB
.npmignore 101B
.travis.yml 38B
.editorconfig 197B
lib
index.js 2KB
共 12 条
- 1
温暖如故
- 粉丝: 22
- 资源: 4642
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论0