Partials

dave | 11 months ago

Rails has the concept of partials, and I was wondering if there was something similar in Recess!?

Basically you have a block of code, perhaps in another file, and you can include that block of code into your template multiple times. Let's say for example you have a page which lists people. Each person can be displayed in the block. You pass the php person object to the block, and the block spits out a custom piece of HTML for that person.



midnightmonster | 11 months ago

Yeah. Check out "Parts" in the latest release.

reply

midnightmonster | 11 months ago

And the forum ate my link. http://www.recessframework.org/book/html/ch10.html

reply



Welcome KrisJordan!

Web: http://www.krisjordan.com/

Location: North Carolina

Edit Profile