Skip to content

milkyway-multimedia/ss-mwm-assets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Assets (New Requirements Backend)

Features

  • Access using: singleton('require')
  • You now have some sort of priority for your requirements
    • ->before
    • ->after
    • ->first
    • ->last
  • Defer CSS and javascript until page loads using: ->defer
  • Inline CSS and javascript using: ->inline
  • Replace certain files using: ->replace
  • Insert CSS and javascript into the using: ->head
  • New globals for your templates
    • $inlineFile(''): Inline a file at this section of a template
    • $placeIMG($width = 400, $height = 300, $categories = 'any', $filters = ''): Insert a placeholder image courtesy of placeimg.com
    • $loremIpsum($paragraphs = 1, $length = 'short', $opts = ['plaintext']): Insert lorem ipsum text courtesy of loripsum.net

Install

Add the following to your composer.json file


    "require"          : {
		"milkyway-multimedia/ss-mwm-assets": "dev-master"
	}

License

  • MIT

Version

  • Version 0.3 (Alpha)

Contact

Mellisa Hankins

About

New requirements backend for Silverstripe

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages