Socket
Book a DemoInstallSign in
Socket

smart-gulp-template-processor

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

smart-gulp-template-processor

You can process an template with an context object using gulp.

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

smart-gulp-template-processor

You can process an template with an context object using gulp.

Usage

npm install smart-gulp-template-processor

Selectors

You can use basically two patterns to select tags:

  • {{property}}
  • <%= property %>

Both work the same way, and you can use they at the same time.

Gulp example

var gulp = require('gulp'),
    path = require('path'),
    smartGulpTemplateProcessor = require('smart-gulp-template-processor');

gulp.task('default', function () {

    var destPath = path.join(__dirname, 'dest');
    var originPath = path.join(__dirname, '**', '*.tpl');

    var dataObj = {
		company:{
			nome: "JulioGold",
			email: {
				address: "julio.gold@someServer.com",
				type: "Comercial"
			}
		}
	};

    return gulp.src(originPath)
        .pipe(smartGulpTemplateProcessor(dataObj))
        .pipe(gulp.dest(destPath));

});

News

0.0.1 Created gulp plugin.

Thanks

Keywords

template

FAQs

Package last updated on 22 Feb 2016

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.