Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save html/4428257 to your computer and use it in GitHub Desktop.

Select an option

Save html/4428257 to your computer and use it in GitHub Desktop.
Templates for render-menu-with-template ( https://gist.github.com/4427596 ) to display navigation as twitter bootstrap tabs.
(def-weblocks-yaclml-mustache
bootstrap-navigation-tabs-item-layout
(<:li :id "{{{item-id}}}" :class "{{#pane-selected-p}} active{{/pane-selected-p}}"
"{{#pane-selected-or-disabled-p}}"
(<:a :href "#" "{{{label}}}")
"{{/pane-selected-or-disabled-p}}"
"{{^pane-selected-or-disabled-p}}"
(<:a :href "{{{link}}}"
(<:as-is "{{{label}}}"))
"{{/pane-selected-or-disabled-p}}"))
(def-weblocks-yaclml-mustache
bootstrap-navigation-tabs-layout
(<:div :id "{{menu-id}}"
"{{#header}}"
(<:h1 "{{{header}}}")
"{{/header}}"
"{{#empty-menu-p}}"
(<:div :class "empty-menu"
(<:as-is "{{{empty-message}}}"))
"{{/empty-menu-p}}"
"{{^empty-menu-p}}"
(<:ul :class "nav nav-tabs"
"{{{menu-content}}}")
"{{/empty-menu-p}}"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment