Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

grunt-betajs-templates

Package Overview
Dependencies
Maintainers
3
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grunt-betajs-templates

Build BetaJS templates.

  • 0.1.25
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
40
increased by5.26%
Maintainers
3
Weekly downloads
 
Created
Source

grunt-betajs-templates 0.1.24

Code Climate NPM Gitter Chat

Build BetaJS templates.

Getting Started

This plugin requires Grunt.

If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:

npm install grunt-betajs-templates --save-dev

Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:

grunt.loadNpmTasks('grunt-betajs-templates');

Basic Usage

Overview

In your project's Gruntfile, add a section named betajs_templates to the data object passed into grunt.initConfig().

Options

The namespace of each betajs_templates namespace must be specified. See any of the examples for guidance on specifying the namespace option.

grunt.initConfig({
  betajs_templates: {
    dist: {
      files: {
        "dest/betajs-templates.js": [
          "src/my_first_template.html",
          "src/my_second_template.html",
          "src/my_last_templates.html"
        ]
      },
      options: {
        namespace: 'App.Templates'
      }
    },
  },
});

Naturally, it is possible to specify a different namespace for each subtask. Multiple namespaces for different subtasks can be seen in the example below.

grunt.initConfig({
  betajs_templates: {
    dashboard: {
      files: {
        "dest/betajs-dashboard-templates.js": [
          "dashboard/*.html",
        ]
      },
      options: {
        namespace: 'App.Dashboard'
      }
    },
    homepage: {
      files: {
        "dest/betajs-homepage-templates.js": [
          "homepage/*.html"
        ]
      },
      options: {
        namespace: 'App.Homepage'
      }
    }
  }
});
ResourceURL
Homepagehttps://github.com/betajs/grunt-betajs-templates
Gitgit://github.com/betajs/grunt-betajs-templates.git
Repositoryhttps://github.com/betajs/grunt-betajs-templates
Bloghttps://blog.betajs.com
Twitterhttps://twitter.com/thebetajs
Gitterhttps://gitter.im/betajs/grunt-betajs-templates

Compatability

TargetVersions
NodeJS4.0 - Latest

Main Contributors

  • Oliver Friedmann
  • Victor Lingenthal
  • Matt McNaughton

License

Apache-2.0

Credits

This software may include modified and unmodified portions of:

  • Underscore, MIT Software License, (c) 2009-2013 Jeremy Ashkenas, DocumentCloud

Keywords

FAQs

Package last updated on 06 Apr 2022

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