Snippets already support "inner-templates" via <r:yield />.

Sean

Casper Fabricius wrote:
Great - thanks!

What would it take to also make it possible to provide "inner templates" as parameters for snippets?

For example:

<r:snippet name="animal_info" animal="lion">
  <r:var: name="description">
    <p>Lions are great cats</p>
    <r:find url="/lions"><r:link>Read more</r:link></r:find>
  </r:var>
</r:snippet>

Med venlig hilsen / Best regards,
Casper Fabricius
http://casperfabricius.com

On 18/10/2008, at 13.23, Manuel Meurer wrote:

Done.

Manuel

On Sat, Oct 18, 2008 at 12:49 PM, Manuel Meurer <[EMAIL PROTECTED]> wrote:
Will do.

Manuel

On Sat, Oct 18, 2008 at 12:00 PM, Casper Fabricius
<[EMAIL PROTECTED]> wrote:
Looks like something I could use. How does it work? Could add some examples
and explain about any limitations in the readme-file?

Med venlig hilsen / Best regards,
Casper Fabricius
http://casperfabricius.com

On 18/10/2008, at 00.55, Manuel Meurer wrote:

Yep, I use <r:var /> in my parameterized snippets extension:
http://github.com/manuelmeurer/radiant-parameterized-snippets-extension/
The idea originates from here, though:
http://www.nabble.com/Snippets-with-Parameter(s)-td19772449.html

BTW, anyone heard anything about a <r:var /> Radius tag? Or anything
about
setting arbitrary page variables?

_______________________________________________
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant

_______________________________________________
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


_______________________________________________
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant

_______________________________________________
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


_______________________________________________
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant

Reply via email to