https://github.com/ikeikeikeike/python-eco
Python Eco Compiler
https://github.com/ikeikeikeike/python-eco
Last synced: 26 days ago
JSON representation
Python Eco Compiler
- Host: GitHub
- URL: https://github.com/ikeikeikeike/python-eco
- Owner: ikeikeikeike
- License: mit
- Created: 2012-06-16T16:44:48.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2012-12-31T04:35:47.000Z (over 12 years ago)
- Last Synced: 2025-04-02T09:51:14.562Z (2 months ago)
- Language: Python
- Homepage: http://ikeikeikeike.github.com/python-eco/
- Size: 167 KB
- Stars: 3
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: HISTORY.rst
- License: LICENSE
Awesome Lists containing this project
README
Python Eco
===========Python Eco is a bridge to the [Eco](https://github.com/sstephenson/eco) (CoffeeScript Template) Compiler.
```python
import ecoeco.compile(open("template.eco"))
# Out: u"function(...) {...}"context = eco.context_for("Hello <%= @name %>")
context.call("render", {"name": "Sam"})
# Out: u'Hello Sam'eco.render("Hello <%= @name %>", name="world")
# Out: u'Hello world'
```Setup
-----
```bash
$ pip install eco
```License
========
MIT License