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

grunt-ect-templates

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grunt-ect-templates

Static site compiler built around ect

  • 0.3.1
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
7
increased by40%
Maintainers
1
Weekly downloads
 
Created
Source

grunt-ect

Hi!

This tool generates html files from ect templates.

I spied the idea from https://bitbucket.org/2no/grunt-ect, because I'm not entirely staged implementation. I decided to start with the addition of support patterns in the file names. In fact, I rewrote almost all the implementation.

Getting Started

install via npm

npm install grunt-ect-templates

and in your Gruntfile.js file:

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

Usage

module.exports = function(grunt) {
  grunt.initConfig({
    ect: {
      test: {
        options: {
          ext: '.ect',
          root: 'tests/ect'
        },
        cwd: 'tests/ect',
        patterns:  ['**/page_*.ect'],
        dest: 'tests/compiled/'
      }
    }
  });

  grunt.task.registerTask('default', 'ect');
  grunt.loadNpmTasks('grunt-ect-templates');
};

run with:

grunt ect

Special object '__'

I need it that I can generate CSS classes by file basename.

  • <%= @__.basename %> — contains file basename.
  • <%= @__.filename %> — contains file name.

Keywords

FAQs

Package last updated on 29 Apr 2013

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