sahat / megaboilerplate

Handcrafted starter projects, optimized for simplicity and ease of use.
MIT License
3.83k stars 257 forks source link

Init foundation JS on main layout #136

Closed reyhansofian closed 8 years ago

reyhansofian commented 8 years ago

Thanks for your great boilerplate! I love it!

There's a small issue with the foundation (I'm using React + Foundation + Handlebars). On your main layout (views > layouts > main.handlebars), there's no foundation initialize code that looks like this:

<script type="text/javascript">
  $(document).foundation();
</script>

Without this code, any foundation javascript won't run. Maybe you can add it by default? Thanks!

sahat commented 8 years ago

Hey @reyhansofian, this has been fixed in https://github.com/sahat/megaboilerplate/pull/125.

When you choose React, you will see Foundation initialization insider Header.js component, inside componentDidMount.

reyhansofian commented 8 years ago

Ah, sorry I missed that issue. I'll close this then.