Coder Social home page Coder Social logo

wtanaka / templito Goto Github PK

View Code? Open in Web Editor NEW

This project forked from minted/templito

0.0 0.0 0.0 141 KB

Generates javascript files for underscore.js templates.

License: BSD 3-Clause "New" or "Revised" License

JavaScript 6.06% Shell 0.46% CoffeeScript 87.76% HTML 5.73%

templito's Introduction

#Templito

Temp·li·to [temp-lee-toh]

  1. (noun) A small underscore.js template precompiler.
  2. (noun) A template burrito.

Generates javascript files for underscore.js templates.

To install:

npm install -g templito

For quick help:

templito -h

will bring up the help info:

Compiles underscore.js templates into javascript files.

templito source-dir out-dir [options]

Options:
  -c, --compile-style      Options include: "combined" (single file), "directory" (one file per directory) and "file" (one output file per input file).                                                                                                [default: "directory"]
  -p, --path-case          The casing for the object path part of an output function's address. If the template is source_dir/a/b/c.html, then the object path part is source_dir/a/b. Options include "camelCase", "CapitalCase",  and "snake_case".  [default: "CapitalCase"]
  -f, --function-case      The casing for the output function's name. Options are the same as for the path-case option.                                                                                                                                [default: "camelCase"]
  -e, --extension          templito will look for files with the given extension.                                                                                                                                                                      [default: ".html"]
  -k, --keep-extension     Whether or not the output files should keep the original file extension as part of its name.                                                                                                                                [default: false]
  -n, --namespace          The namespace to add your compiled template functions to.                                                                                                                                                                   [default: "App"]
  -s, --template-settings  A javascript object that will override _.templateSettings.
  -h, --help               Show this help message and exit.
  -w, --watch              Watch the source directory for changes and recompile the templates when a change is detected.
  -C, --clean              Empty the out-dir before compiling.
  -U, --unsafe-clean       Opt out of prompt before cleaning out-dir

More detailed documentation to come.

templito's People

Contributors

benekastah avatar danielr-minted avatar paulhminted avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.