Socket
Book a DemoInstallSign in
Socket

fis-preprocessor-smarty-replace

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fis-preprocessor-smarty-replace

fis plugin to replace smarty include tag with inline link tag for fis

1.0.5
latest
Source
npmnpm
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

fis-preprocessor-smarty-replace

Purpose:

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

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

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

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

How to use:

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

rootDir: 默认为""。

Keywords

fis

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.