Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minifier Support #5

Merged
merged 3 commits into from
Jul 4, 2014
Merged

Minifier Support #5

merged 3 commits into from
Jul 4, 2014

Conversation

phpnode
Copy link
Member

@phpnode phpnode commented Jul 4, 2014

Adds support for minification via html-minifier.

var collection = HTMLing.dir('templates', null, null, true);
collection.render('index', {}); // output is minified

also accepts options to pass to the minifier:

var collection = HTMLing.dir('templates', null, null, {
      collapseWhitespace: true,
      collapseBooleanAttributes: true
    });
collection.render('index', {}); // output is minified

The arguments for these commands should probably be replaced with an options object, but I'll save that for another PR.

samsonradu added a commit that referenced this pull request Jul 4, 2014
@samsonradu samsonradu merged commit 87535bd into master Jul 4, 2014
@phpnode phpnode deleted the minifier branch July 5, 2014 15:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants