Download the PHP package heyday/silverstripe-templatehelpers without Composer
On this page you can find all versions of the php package heyday/silverstripe-templatehelpers. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download heyday/silverstripe-templatehelpers
More information about heyday/silverstripe-templatehelpers
Files in heyday/silverstripe-templatehelpers
Download heyday/silverstripe-templatehelpers
More information about heyday/silverstripe-templatehelpers
Files in heyday/silverstripe-templatehelpers
Vendor heyday
Package silverstripe-templatehelpers
Short Description Simple template functionality for Silverstripe
License MIT
Homepage https://www.akqa.com
Package silverstripe-templatehelpers
Short Description Simple template functionality for Silverstripe
License MIT
Homepage https://www.akqa.com
Keywords templatesilverstripe
Please rate this library. Is it a good library?
Informations about the package silverstripe-templatehelpers
SilverStripe template helpers
A library with common functionality used by SilverStripe template developers.
Installation (with composer)
$ composer require heyday/silverstripe-templatehelpers
Usage
Once installed, the following functions are available in any .ss template:
$isDev
- If the site is running in a development environment$isTest
- If the site is running in a test environment$isLive
- If the site is running in a production environment$ImagePath('my-image.png')
- Build an image path based on config for the current environment$addInlineScript('/path/in/theme/directory/file.js')
- include a javascript file verbatim in the template (note that<script>
tags aren't generated automatically, so you'll need to add those around this call).
$ImagePath
config
The image path helper defaults to themes/[theme]/images/
. The path within the theme directory can be configured in your project's YAML config:
All versions of silverstripe-templatehelpers with dependencies
PHP Build Version
Package Version
No informations.
The package heyday/silverstripe-templatehelpers contains the following files
Loading the files please wait ....