yinchtml

1.0.4 • Public • Published

yinchtml

a html include tool tpl file

usage

as a global module

npm install yinchtml -g
yinchtml . 
yinchtml your path

as a local module

npm install yinchtml
npx yinchtml .
npx yinchtml your path

yinchtml-config.js

this is config file for yinchtml,it is necessary. the struct like this.

module.exports = [
	{
		tpl:'tpl',
		inc:'.',
		dist:'.'
	},
	{
		tpl:'tpl',
		inc:'.',
		dist:'test'
	}
];

include tag

the html <!--[include file_path]--> string will be replace by file data. write it in anywhere that you want to include other html file.

  • tpl :the html template directory,such as .php file

tpl file

  • inc :the include directory,such as php <?php include('./head.php'); ?> head file

inc1

  • inc :the include directory,such as php <?php include('./head.php'); ?> script file

inc1

  • dist :the dist directory,the final html files

inc1

Readme

Keywords

Package Sidebar

Install

npm i yinchtml

Weekly Downloads

2

Version

1.0.4

License

AGPL-3.0-or-later

Unpacked Size

6.3 MB

Total Files

10

Last publish

Collaborators

  • chensuiyi