Giter Club home page Giter Club logo

haxe-rails's Introduction

HaxeRails

wercker status Test Coverage Code Climate

Haxe adapter for the Rails asset pipeline.

Installation

Add the gem to Gemfile.

gem 'haxe-rails'

Run bundle install.

Usage

1 Create haxe project under the app/assets/javascript.

rails_project/
  app/
    assets/
      javascripts/
        haxe_project

2 Create hxml file under the haxe project directory.

  rails_project/
    app/
      assets/
        javascripts/
          haxe_project
+           compile.hxml

haxe-rails compiles using hxml file.

3 Add a postscript to hxml path in under the assets/*.js file.

+ //= require haxe_project/compile

Or Add a postscript to a hxml file path in Rails.application.config.assets.precompile of the config/initizlizers/assets.rb.

Rails.application.config.assets.precompile += %w( haxe_project/compile.js )

It is necessary for the extension of hxml file to make .js.

Generator

Generate empty project with:

rails g haxe:assets [project name]

haxe-rails's People

Contributors

k-motoyan avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.