Hobo / hobo

The web app builder for Rails (moved from tablatom/hobo)
http://hobocentral.net
103 stars 39 forks source link

move content-body and aside from generators into theme #11

Closed bryanlarsen closed 11 years ago

bryanlarsen commented 12 years ago

See https://github.com/Hobo/hobo_bootstrap/issues/27

The idea is to make this change in hobo_clean.dryml:

Modified   hobo_clean/taglibs/hobo_clean.dryml
diff --git a/hobo_clean/taglibs/hobo_clean.dryml b/hobo_clean/taglibs/hobo_clean.dryml
index 38f6481..c5836f6 100644
--- a/hobo_clean/taglibs/hobo_clean.dryml
+++ b/hobo_clean/taglibs/hobo_clean.dryml
@@ -56,7 +56,19 @@
           <live-search param if="&defined_route? :site_search"/>
           <main-nav current="&title" param/>
         </header>
-        <section with-flash-messages param="content"/>
+
+        <section with-flash-messages param="content">
+          <section-group>
+            <section param="main-content">
+              <header param="content-header"/>
+
+              <section param="content-body"/>
+            </section>
+
+            <aside param/>
+          </section-group>
+        </section>
+
         <footer class="page-footer" param/>
         <page-scripts param/>

And then adjust pages.dryml.erb to use content-header:, content-body: and aside: directly instead of defining them as params inside of content:.

bryanlarsen commented 11 years ago

merged.