-
-
Notifications
You must be signed in to change notification settings - Fork 278
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
nested layouts #71
Comments
This might actually solve #80 as well. I suggest we implement this feature before 80 as follows:
Make sense? I think this is pretty solid. |
+1 on this I'm currently building a set of layouts and it seems that I now have to write my code multiple times to achieve this. I'd really appreciate something like this. |
Thanks for pinging this @Arkkimaagi. You seem to have perfect timing since @jonschlinkert and I were just talking about this the other night and we're working on it. I hope to have some of these things finished this weekend. |
You can take a peek at what I'm working on at the repository for my site. I have a enhancement request related to this issue there: Arkkimaagi/assemble-website-template#10 I have collected a bunch of stuff I've been working on with assemble over there. Some of it is messy and all of it under construction, but it might give you an idea on how I've worked with Assemble. Any improvements and suggestions are very welcome. I think it could be mutually beneficial as most of the ideas and issues I've shared here come from that project and similar ones that I have running. |
Thanks @Arkkimaagi I'll take a look today. I'm also working through the helper loading stuff right now. |
@Arkkimaagi you're doing some interesting stuff with that repo, thanks for sharing a link to it. |
If there were some problems getting it running, it might be because I'm runnin a modified version of assemble that handles empty files better. I'll do a pull request on that a bit later. |
@Arkkimaagi I just looked through it, I haven't pulled it down yet. K, looking forward to seeing how you resolved the empty files issue. That's actually a handlebars thing, I just usually put a code comment since anything works |
The empty string issue may have been fixed but I'm not sure which version it was fixed in and we had hardcoded a version of handlebars because they had a breaking issue with something else. I think soon they're planning on fixing all their versions and doing an office 1.0(?) release that will hopefully have most of these things fixed. |
What is the status of this issue? The Handlebars 1.0 release seems to be out with few minor fixes already in it. |
@Arkkimaagi yeah I just did another project that this would be useful on. I'm sure @doowb would help you through it if you want to try doing the code for this. |
I have no idea where to even start. I have not taken a look at that side of things at all. |
@doowb what are the main challenges of implementing this? |
I think this can be closed now because of PR #250 |
Jekyll does this currently. The way it works is you can create a very simple layout that has only the head and body tags, for example. Other layouts will then use that layout as a base, but with additions such as a navbar, footer etc..
For example:
base-layout.hbs
kitchen-sink-layout.hbs
The text was updated successfully, but these errors were encountered: