trvsdnn / frank

Static Site Non-Framework
http://github.com/blahed/frank
MIT License
415 stars 30 forks source link

content_for #69

Closed cullepm3 closed 12 years ago

cullepm3 commented 12 years ago

Is content_for supported? I tried to use, but it didn't work, the body part was inserted twice.

Eg.

%h3
  =yield :title

=yield

-----
- content_for :title do  
  ="News - updated Feb 27th 2012"

Blah Blah Blah

returns

<h3>Blah Blah Blah<h3>
Blah Blah Blah
trvsdnn commented 12 years ago

It is supported, but you don't use yield to get the content in the layout. You call content_for with the symbol that you used in the template.

=content_for :title
# instead of
=yield :title