Project

es6_tilt

0.0
No commit activity in last 3 years
No release in over 3 years
Transforms .js files into js files so you can write es6 code and use it in your views.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 0.10.3

Runtime

~> 2.0
~> 4.0
~> 3.0
~> 2.0
 Project Readme

Es6Tilt¶ ↑

Allows you to use es6 in your ruby apps (with tilt or sprockets).

Rails Install¶ ↑

Add this to your Gemfile:

gem 'es6_tilt'

Now add an initializer for the filetype you’d like to have. So for example.

#config/initializers/sprockets.rb
Rails.application.assets.register_engine '.es6', ES6Tilt::ES6Transformer

That will make files ending with .es6 show up as js in your browser. Can work on .jsx files as well. It’s just Babel in the background.

This project rocks and uses MIT-LICENSE.