Giter Site home page Giter Site logo

closure-templates-clj's Introduction

# CLOSURE-TEMPLATES-CLJ

Clojure library for Google's Closure Templates.

## Installation

Via Clojars: http://clojars.org/closure-templates-clj.

## Documentation

The API documentation is available at http://r0man.github.com/closure-templates-clj.

## Examples

(ns closure.templates.test.core
  (:use closure.templates.core))

(deftemplate hello-name [name]
  {:name name})

(hello-name \"Closure\")
;=> \"Hello Closure\"

## Notes

This example expects a Soy template named "helloName" in the file
"soy/closure/templates/test/core.soy" on the classpath. The render fn
must match with the template name, and the Clojure namespace with the
Soy filename.

## License

Copyright (C) 2011 Roman Scherer

Distributed under the Eclipse Public License, the same as Clojure.

closure-templates-clj's People

Contributors

r0man avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

closure-templates-clj's Issues

Modify automatic underscore conversion of template params

Just wondering, is there any chance of removing the call to inflections.core/underscore-keys in closure.templates.render/transform-data? The standard convention for param names with closure templates seems to be camel-case, and I have a number of existing templates using this convention. The only choices for this scenario are go through all the templates and convert all params to underscores, or use alter-var-root on inflections.core/underscore-keys as I'm currently doing (and I really don't want to do that). I understand that you would need to account for existing templates depending on that auto-transform, not sure what the answer is, just wondering if you were open to considering any options.

Thanks.

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.