1.0.4 • Published 5 years ago

yinchtml v1.0.4

Weekly downloads
5
License
AGPL-3.0-or-later
Repository
github
Last release
5 years ago

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

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago