wvuweb / hammer

A tool for CleanSlate theme development
https://cleanslate.wvu.edu
4 stars 2 forks source link

r:root does not work as expected #30

Closed zeroedin closed 9 years ago

zeroedin commented 9 years ago

In order to use the <r:root /> tag hammer needs to be aware if the "current view" is considered viewing at the root level.

This would be done by adding the root attribute to mock_data.yml

  root: true   # accepts true | false, defaults to false in the tags absence.

Currently the tag is always "expanded". This is incorrect for some layouts and needs to be definable.

    <r:root>
      <ul>
        <r:children:each labels="audience">
          <li>
            <a href="<r:page:url />"><r:page:name /></a>
          </li>
        </r:children:each>
      </ul>
    </r:root>

Here is how this element is used and in this case you may want to be able to toggle this on and off while styling the page.