Skip to content

ai/file-container

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

About

Store different languages in one source file

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published