0.2.1 • Published 7 years ago

gulp-pagebuilder2 v0.2.1

Weekly downloads
1
License
ISC
Repository
github
Last release
7 years ago

gulp-pagebuilder

Pagebuilder2 is a build and real time include engine for HTML, JavaScript, CSS and in general any type of text file that you wish to might want to "include" other files into. It is modification of gulp-pagebuilder

Install

Install with npm.

npm install --save-dev gulp-pagebuilder2

Examples

var gulp = require('gulp'),
	pagebuilder2 = require('gulp-pagebuilder2'));

gulp.task('default', function () {
	gulp.src('src/*.html')
		.pipe(pagebuilder2('src'))
		.pipe(gulp.dest('build/'));
});

How use it in sources

<div class="someclass" >
	[[azbntple tpl="some/block/in/src/somefile.html" class="foo bar" ]]
</div>

Content of some/block/in/src/somefile.html

<div class="otherclass {{class}}" >
	Some content
</div>

Result after compile

<div class="someclass" >
	<div class="otherclass foo bar" >
		Some content
	</div>
</div>
0.2.1

7 years ago

0.2.0

8 years ago

0.1.2

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago