You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
👍 Having access to {{pages}} is incredibly useful and eliminates the need to faff about with .YML files for index pages.
🤕 Working with {{pages}} is a bit confusing. Inside my each 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}}.
And/or a {{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.
🤕 In v1.x I was able to pass non .html files to Panini. 2.0 seems to just ignore other types, such as .xml. So it's trickier to make things like RSS feeds.
👍 I'm not sure if https://github.com/helpers/handlebars-helpers is new in v2.0, but it's really nice to have. Not sure if that's specifically mentioned that you can use these. Being able to use {{moment}} for dates is a real win.
In general, really happy to see the new features/things in 2.0!
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'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 :-)
The text was updated successfully, but these errors were encountered: