On Sat, Jul 10, 2010 at 1:10 PM, Wes Gamble <we...@att.net> wrote:
> All,
>
> In the Radiant ethic, it states: " Radiant is primarily designed for static
> Web sites (that is, sites that are not dynamically generated). It is not,
> and should not become, portal software."
>
> I was under the assumption that snippets were roughly equivalent to Rails
> partials, and assumed that snippets could take local data as input just like
> partials, but this doesn't appear to be the case, based on the snippet
> documentation at http://wiki.github.com/radiant/radiant/snippets and the
> quote above.

What about any of that gives you the impression that it can take local
data like a partial?

>
> I'd just like to verify: Can one pass variable data "into" a snippet and
> have it evaluated at runtime in any way?

Yes.
Click on the "Available Tags" link when editing a snippet to see what
you can do.
But basically you can use a <r:yield /> tag to display content like a
block. You could do this:
<r:snippet name="some_container">HELLO</r:snippet>
And that snippet might look like this:
<div class="so_classy"><r:yield /></div>

But take a look at the available tags details for <r:content /> which
allows you to evaluate content in the context of some other page.

Or you can try 
http://github.com/manuelmeurer/radiant-parameterized-snippets-extension

>
> Thanks,
> Wes
>



-- 
Jim Gay
Saturn Flyer LLC
http://www.saturnflyer.com
571-403-0338

Reply via email to