Store different languages in one source file
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
test
.gitignore
.npmignore
.travis.yml
LICENSE
README.md
gulpfile.js
index.js
package.json

README.md

File Container Build Status

Parser for file format to store different languages in one file:

$('.signup').click(function () {
    app.showSignup();
});

sass:
  .signup
    background: green
    color: white

haml:
  %a.signup( href="#signup" )
    Signup
var parser  = require('file-container');
var control = parser(code);

control.main //=> $('.signup').click(function () {
             //=>     app.showSignup();
             //=> });
control.sass //=> .signup
             //=>   background: green
             //=>   color: white
control.haml //=> %a.signup( href="#signup" )
             //=>   Signup
Sponsored by Evil Martians