Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

fis-parser-smarty-replace

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fis-parser-smarty-replace

parser for smarty tmpl in fis

  • 1.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

fis-parser-smarty-replace

parser for smarty tmpl in fis

目的:

由于使用html-minifier将html压缩的时候会将所有的tag都闭合, 在这种情况下,smarty模板中include进来的部分也会是经过标签闭合处理的,从而导致错误。 此插件的作用就是将原有smarty模板中的

<include file="a/b.html">

替换成以下格式,以便于被fis支持:

<link rel="import" href="[rootDir]a/b.html?__inline">

用法:

fis.match('*.html', {
	parser: fis.plugin('smarty-replace', {
		preTag: '{',
		afterTag: '}',
		rootDir: '../'
	})
});

rootDir: 默认为""。

Keywords

FAQs

Package last updated on 27 Nov 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc