Merge pull request #2972 from LaurentGoderre/v4.0

Added variables for minification in the template
HACK: Temporary fix for assemble issue 139