We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
My partiial _navbar.hbs:
_navbar.hbs
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Dawn</title> </head> <body> <h1>Hello</h1> <nav> <ul> {{#each navbarItems}} <li> <a href="{{link}}">{{title}}</a> </li> {{/each}} </ul> </nav>
My page index.hbs:
index.hbs
{{> navbar }} <div class="page-index"> <h4>Home, {{name}}</h4> </div>
I custome task in Gruntfile.coffee:
Gruntfile.coffee
// require handlebars Handlebars = require './vendor/handlebars/handlebars' // custome task templates = (require "./.tmp/jst/template")(Handlebars) html = templates['index']({ name: 'juo' navbarItems: navbarItems })
Then i log the html, there is no li element in nav > ul
html
li
nav > ul
The text was updated successfully, but these errors were encountered:
No branches or pull requests
My partiial
_navbar.hbs
:My page
index.hbs
:I custome task in
Gruntfile.coffee
:Then i log the
html
, there is noli
element innav > ul
The text was updated successfully, but these errors were encountered: