forked from houseabsolute/HTML-Mason
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement a use_warnings flag for the Mason compiler
This allows you to catch runtime warnings in all Mason templates by enabling a global use_warnings switch, similar to the use_strict switch. Unlike use_strict this is off by default, so it's fully backwards compatible. I have a huge codebase where I'd like to enable warnings by default, and not have to turn them on one-by-one for each template, which would be *really* painful.
- Loading branch information
Showing
3 changed files
with
61 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters