2017 © Pedro Peláez
 

silverstripe-module silverstripe-foundation-interchange

Adds support for using .ss templates with ZURB Foundation's Interchange

image

rywa/silverstripe-foundation-interchange

Adds support for using .ss templates with ZURB Foundation's Interchange

  • Sunday, January 18, 2015
  • by ryanwachtl
  • Repository
  • 1 Watchers
  • 4 Stars
  • 656 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 2 Forks
  • 3 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

SilverStripe Foundation Interchange

Experimental support for dynamically loading responsive content using .ss templates with Foundation's Interchange, (*1)

Installing

composer require rywa/silverstripe-foundation-interchange dev-master, (*2)

Using

Adds a new template placeholder $InterchangePartial(), (*3)

Use within your data-interchange element to reference your template partials. Passing in the .ss you would like to use., (*4)

<div data-interchange="[$InterchangePartial('Includes/Default'), (small)],
                       [$InterchangePartial('Includes/Medium'), (medium)],
                       [$InterchangePartial('Includes/Large'), (large)]">
</div>

In the above example we're using Default.ss, Medium.ss, and Large.ss files that within our $ThemeDir/templates/Includes or mysite/templates/Includes folder., (*5)

See Foundation Interchange for more on how Interchange works., (*6)

Limitations

The partials are rendered with the controller before any actions are called. Please keep this in mind. You will have access to all the standard template placeholders in your partials, but nothing that is set within any of your controller actions., (*7)

Requirements

SilverStripe Foundation Theme, (*8)

About Foundation

Foundation is the most advanced responsive front-end framework in the world. With Foundation you can quickly prototype and build sites or apps that work on any kind of device, with tons of included layout constructs (like a full responsive grid), elements and best practices., (*9)

The Versions

18/01 2015

dev-master

9999999-dev

Adds support for using .ss templates with ZURB Foundation's Interchange

  Sources   Download

MIT Open Source License

The Requires

 

foundation silverstripe interchange