Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Render custom sidemenu from json data #106

Merged
merged 6 commits into from
Mar 1, 2017

Conversation

cxq
Copy link
Contributor

@cxq cxq commented Feb 25, 2017

The HTML from the sidebar menu are not customizable because it is hard-coded and injected directly from a helper.

The idea was to get a JSON object and build the menu according to our needs.

I added a new template for the handlebars example. Missing EJS and Jade

@cxq cxq changed the title Render sidemenu from json data Render custom sidemenu from json data Feb 25, 2017
@geckotang
Copy link
Contributor

@cxq Thank you good PRs !

When I want to customize side menu, I need to specify the following options, right?

aigis_config.html

template_engine: hbs
template_dir: ./template-json_hbs
helper_options:
  renderTemplateJSON: true

@cxq
Copy link
Contributor Author

cxq commented Mar 1, 2017

Hi @geckotang
Yes, it's correct.

@geckotang geckotang merged commit 195d138 into aigis-styleguide:master Mar 1, 2017
@jarodtaylor
Copy link

jarodtaylor commented Aug 4, 2017

It would be nice if this would tell you if the Parent has an active Child, so that you could add "active" to both the parent and the child <li>.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants