Closed khawkins98 closed 6 years ago
Thank you so much for this! :) It's really helpful.
Working with
{{pages}}
is a bit confusing.
Makes sense. This is an easy fix. #155
In v1.x I was able to pass non .html files to Panini. 2.0 seems to just ignore other types
The solution I planned to implement here was support for a static/
folder that just copies all of its contents to your build folder as-is. I've wanted to keep this library focused on the essentials of template rendering (so no Sass, JS, etc. support), but copying static files is pretty simple, so it's something I'll implement before v2 is done. #156
I'm not sure if https://github.com/helpers/handlebars-helpers is new in v2.0, but it's really nice to have.
It is new! I want Panini to be a batteries-included solution, so bundling a large helpers library is part of that.
Cheers, thanks for taking the ideas onboard. Glad it was helpful!
I've used Panini for my personal site+blog and moved it to the 2.0 alpha, and I thought I'd pass along some sentiment/remarks:
{{pages}}
is incredibly useful and eliminates the need to faff about with .YML files for index pages.{{pages}}
is a bit confusing. Inside myeach
loop I have to access{{this.[2]}}
to get to the metadata. Would be nice if these were named, a la {{this.body}} {{this.metadata}}.{{allPagesBody}}
{{allPagesMetadata}}
. This would be nice as sorting nested arrays in handlebars is tricky. I've still yet to work out how to sort {{pages}} by individual page metadata..xml
. So it's trickier to make things like RSS feeds.{{moment}}
for dates is a real win.In general, really happy to see the new features/things in 2.0!
Here's a blog I wrote -- it's much of the same as above, but with a bit more detail, links: https://work.allaboutken.com/posts/20180210-zurb-panini-2-migration.html
Feel free to just close this, but you said you were interested in feedback :-)