【文件属性】:
文件名称:handlebars-fileset:用于创建文件集的 Handlebars 助手
文件大小:2KB
文件格式:ZIP
更新时间:2021-06-22 01:01:44
JavaScript
把手文件集
从 Handlebars 访问。
##安装
$ npm install handlebars-fileset
##用法
var handlebars = require ( "handlebars" ) ;
var handlebarsFileset = require ( "handlebars-fileset" ) ;
/* this will register the handlebars-fileset helpers on your handlebars instance */
handlebarsFileset ( handlebars ) ;
###例子
{{#each fileset("*.md").files}}
filename: {{this}}
{{/each}}
【文件预览】:
handlebars-fileset-master
----lib()
--------handlebars-fileset.js(407B)
----test()
--------test.hbs(39B)
----README.md(854B)
----package.json(323B)