Skip to content

christopherdarling/silverstripe-theme-manifest-assets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Theme Manifest assets

loads a JSON manifest file (default: themes/default/mainifest.json), looks up a given path and outputs the hashed filename

Example

Folder structure

dist/

  • assets.js
  • manifest.json

manifest.json

{
  'img/logo.png': 'img/logo_HASH.png'
}

.ss template

<img src="{$ThemeManifestAsset(img/logo.png)}" alt="Logo">

Will output

<img src="themes/default/dist/img/logo_HASH.png" alt="Logo">

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages