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

soycompiler

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

soycompiler

A simple compiler for SOY templates for inclusion on the client-side.

  • 0.0.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

Soy Compiler

Soy compiler is simple little npm package that can be included to compile soy templates in a source directory to a target directory. This is useful to compile soy templates for inclusion on the client-side (to allow for client-side templates).

https://bitbucket.org/knecht_andreas/soycompiler

Installation

Simply run npm install soycompiler.

Usage

var soycompiler = require("../lib/soycompiler.js");

soycompiler.compileTemplates({
    "sourceDir":__dirname + "/source",
    "targetDir":__dirname + "/target",
    "autorecompile":true
}, function (err) {
    if (err) {
        throw new err;
    }
});

See examples/example.js. The autorecompile flag is optional and may only be necessary in development. Setting this flag to true will automatically recompile all soy templates on any file change. (Currently changing any template will recompile all templates)

License

Copyright 2012 Andreas Knecht.

Licensed under the Apache License, Version 2.0. See the top-level file LICENSE.txt and http://www.apache.org/licenses/LICENSE-2.0.

Thanks

Ideas and some code constructs were inspired by the excellent https://github.com/Obvious/soynode.

Keywords

FAQs

Package last updated on 11 Dec 2012

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