Skip to content

latentflip/domthingify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Domthingify

Browserify transform for domthing.

Install

npm install domthingify domthing

Usage

Require your domthing templates directly from your scripts, including the .dom extension:

var MyView = View.extend({
    template: require('./path/to/template.dom')
});

Add domthingify to your browserify transform list.

  • With browserify: browserify app.js -o bundle.js -t domthingify

  • With beefy: beefy app.js -- -t domthingify

  • With moonboots:

    var moonbootsConfig = {
        main: __dirname + '/sample/app.js',
        libraries: [ ... ],
        stylesheets: [ ... ],
        browserify: {
            transforms: [ 'domthingify' ]
        }
    };

License

MIT

About

Browserify transform for domthing.

Resources

Stars

Watchers

Forks

Packages

No packages published