fis3-parser-html-uri
v1.0.2
Published
Make the html file has a function named '__uri' like what used in the js file
Downloads
13
Readme
fis3-parser-html-uri
html文件增加类似js文件中的*__uri*资源自动定位功能函数
安装
$ npm install fis3-parser-html-uri
基本使用
fis.match('*.html', {
parser: fis.plugin('html-uri')
});
<img src="__uri(images/logo.gif)" alt="logo"/>
自定义函数名
fis.match('*.html', {
parser: fis.plugin('html-uri', {
name : '__my_uri'
})
});
<img src="__my_uri(images/logo.gif)" alt="logo"/>