New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

gulp-vue-js-template

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

gulp-vue-js-template

Inject HTML templates into your vue component files.

  • 1.0.1
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Forked from

gulp-vue-template2js

gulp-vue-template2js

Inject HTML templates into your vue component files.

Install

npm install gulp-vue-js-template

How to use

Your code

To inject HTML inside your javacript, you must put "@" inside your template definition.

If your javascript file is named foo.js, gulp-vue-template2js will be inject foo.html.

export default Vue.extends({
    template: "@"
});

The "@" can be followed by the relative path of the HTML file.

export default Vue.extends({
    template: "@../component.html"
});

Gulp task

var gulp = require('gulp');
var tpl2js = require('gulp-vue-js-template');

gulp.task('default', function () {
    gulp.src('src/**/*.js')
        .pipe(tpl2js())
        .pipe(gulp.dest('out'));
});

Keywords

FAQs

Package last updated on 28 Sep 2018

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc