--
You received this message because you are subscribed to the Google Groups "Limonade" group.
To post to this group, send email to limo...@googlegroups.com.
To unsubscribe from this group, send email to limonade+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/limonade?hl=en.
When you call render(), default layout is being used, which calls render() which uses default layout and so on.
null as a second parameter tells framework not to use a layout.
-Baglan
In Rails there's also a concept of "partial" for which you explicitly don't want layout to be applied. Passing "null" as a second argument to render() does the same in Limonade - I think it could be a useful shortcut. Something like this:
function partial($content_or_func, $locals)
{
return render($content_or_func, null, $locals);
}
-Baglan
/**
* Returns a string to output
*
* Shortcut to render with no layout.
*
* @param string $content_or_func
* @param string $locals
* @return string
*/
function partial($content_or_func, $locals = array())
{
return render($content_or_func, null, $locals);
}
I guess API docs need a bit of brushing up :)