suilven/template-env-checker

Adds ability to check environment from within a template.

1.0.3 2018-09-15 15:31 UTC

This package is auto-updated.

Last update: 2024-03-27 06:47:43 UTC


README

Usage

In a template, the following methods are available to check the environment

  • IsDev
  • IsTest
  • IsLive

The use case the drove the creation of this module is one of whether to serve individual or compressed assets.

<% if $IsDev %>
<!-- serve individual CSS files -->
<% else %>
<!-- serve compressed concatenated CSS file -->
<% end %>

Issues

Please use the [GitHub issue tracker][issues] for bug reports and feature requests.

Contribution

Your contributions are gladly welcomed to help make this project better. Please see contributing for more information.

Maintainers

Gordon Anderson

License

BSD-3-Clause © Gordon Anderson