Proton Beta 6 #24
joeworkman
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Updates
PROTON_ENV
environment variable. Details belowSite Data
All data that is imported from the data folder is now scoped under
{{ data.mykey }}
. You will need to adddata
to all of your existing macros that you have in your templates. The reason for this change was to not conflict with any variables that you may want to create inside of your templates.Page Data
Page data no longer gets merged with the site level data. Page data can be accessed through the page scope
{{ page.mykey }}
.Environment Variables
The
PROTON_ENV
environment variable can be used to control template data for production vs development use. You can access this from your templates via{{ proton.environment }}
. One use case for this would be to add analytics or embed code to the production build only.The default environment is
development
. You can pass a new environment to proton at run time.New Twig filters
Here are examples of the new twig filters added.
Live website built with proton
As a fun side project, https://www.worldcupbrackets.info/ was built with Proton. You can access the full source code for this at https://github.com/joeworkman/worldcupbrackets.info
Full Changelog: v0.5.0...v0.6.0
This discussion was created from the release Proton Beta 6.
Beta Was this translation helpful? Give feedback.
All reactions