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

terraform

Package Overview
Dependencies
Maintainers
1
Versions
61
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

terraform

pre-processor engine that powers the harp web server

  • 0.6.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2.3K
decreased by-55%
Maintainers
1
Weekly downloads
 
Created
Source

terraform

Terraform is the pre-processor engine for the Harp Web Server. Terraform does not write or serve files. It processes and provides a layout/partial paradgm.

Features

  • pre-processorse
  • layouts
  • partials
  • metadata (via _data.json)
  • LRU cache (production mode)

Supported Pre-Processors

HTML - EJS, Jade, Markdown CSS - LESS, Stylus JavaScript - CoffeeScript

Install

npm install terraform

API

Step 1) require the library

var terraform = require('terraform')

Step 2) set the root

  • publicPath (String): path to public directory
  • globals (Object): global variables to be available to every template
var planet = root("path/to/public/dir", { "title": "Bitchin" })

Step 3) render a file

planet.render('index.jade', { "title": "Override the global title" }, function(error, body){
  console.log(body)
})

Tests

Please run the tests

npm install
npm test

FAQs

Package last updated on 16 Dec 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