silverstripe/sapphire — pull request #300 by hafriedlander (2012-04-11 09:42:29+00:00)
Title: Feature/ssviewer enhancements

Changes SSViewer#process and the <% include %> tag to allow passing arguments through to the containing template, as per discussion at http://open.silverstripe.org/ticket/7078

<% include %> syntax is <% include Template Key1=Val1, Key2=Val2, ... %>

The comma is necessary to handle 2.4 style bare string support, ie

<% include Template Key1=This is a string with spaces, Key2=This is a different string %>

Of course the new explict style is prefered - strings and variables both work.

<% include Template Key1="This is a string with spaces", Key2=$VariableAccess %>