Plate is a Django Template Language implementation in Javascript. Super exciting!
- Plays nicely with the event loop and async code. Plate makes it easy to parallelize your view code!
- Aims to be compatible with the latest version of the Django Template Language. If you've got a template in Django, it should render just fine in Plate.
- Thoroughly tested using the Platoon testing framework.
- Designed to work nicely in a Node.js environment
- Extensible -- It makes use of plugins to provide capabilities (e.g., template loading).
Yes. Plate was designed to work well in the standard suite of browsers. Each minor point release will target compatibility with IE7+, FF3+, Chrome, and Safari 4+.
The most basic case:
var plate = require('plate'),
sys = require('sys');
var template = new plate.Template('hello {{ world }}');
template.render({world:'everyone'}, function(err, data) {
sys.puts(data);
});
// outputs "hello everyone"
Plate follows the Node.js style of taking callbacks that receive an error object and a data object. If there's no
error, err
will be null.
Plate is documented on it's github wiki. There are "Getting Started" guides for both in-browser as well as in-node environments.
Got a feature you'd like to add? I'd love to see it. The workflow is pretty standard Github fare:
- Fork this repository.
- Create a branch -- title it descriptively, please :)
- Work, work, work.
- Push your changes and submit a pull request.
The minimum requirements for a pull request to be merged are:
- You've added (passing) tests for your new code.
- The existing tests still pass.
- You've added (or changed, as appropriate) documentation to the
docs/
folder in Markdown format.
In node:
$ npm install plate
$ npm test plate
- Internet Explorer
- Firefox
- Chrome
- Safari
- Opera
$ git clone [email protected]:chrisdickinson/plate.git
$ cd plate
$ make browsertest
$ python -m SimpleHTTPServer &
$ open http://localhost:8000/test.html
Licensed new BSD.
plate's People
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.