This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Integrate babeljs with django

Project Description
# django-babeljs #
A simple interface to babel.js: transpile your javascript template into a javascript tag.

## install ##
Just include `babeljs` into your `INSTALLED_APPS`
```
#!python

INSTALLED_APPS += [ "babeljs" ]
```


## templatetag ##

Load the templatetag
```
#!html
{% load babeljs %}
```

### babeljs ###
Include the babeljs file(s) as `<scrip...></script>` tag(s).
It is useful only for in browser transpilation (ie: no nodejs is installed), otherwise can be omitted
```
#!html
{% babeljs %}
```

### babel ###
load file.js, try to transpile it with babeljs and copy the result into the template (acts the same as the `include` tag)
```
#!html
{% babel "file.js" %}
```

transpile a react jsx file
```
#!html
{% babel "file.jsx" %}
```


## settings ##

### BABELJS_BABEL ###
Provide a custom babeljs script.

### BABELJS_ROOT ###
Where to find the babeljs script.

### BABELJS_MINIFIED ###
If use or not the minified version [default=not DEBUG].
Useful only for default babeljs script.

### BABELJS_CACHE_BACKEND ###
Use a specific cache backend for compiled js [default="default"].

### BABELJS_CACHE_TIMEOUT ###
The number of seconds the transpiled code should be stored in the cache, 0 for never cache it, None for cache it forever [default=300].
Release History

Release History

This version
History Node

0.1.4

History Node

0.1.3

History Node

0.1.2

History Node

0.1.1

History Node

0.1

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
django_babeljs-0.1.4-py2.py3-none-any.whl (680.9 kB) Copy SHA256 Checksum SHA256 py2.py3 Wheel Nov 3, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting