r0man / closure-templates-clj Goto Github PK
View Code? Open in Web Editor NEWClojure Library for Google's Closure Templates.
Home Page: http://r0man.github.com/closure-templates-clj
Clojure Library for Google's Closure Templates.
Home Page: http://r0man.github.com/closure-templates-clj
# 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.
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.