All the power of Pug, Sass, Coffeescript and WebPack in your WordPress theme. Stop writing themes like it's 1998.
yarn.lock
no more shipped with themerender_static
: the optimizer in some scenarios could lead to error because the render was not called. No performance drawbacks anyway.render_static
loosing locals variablesNOTE: I'm compiling ahead of time this release's changelog because I forgot to do this at the time. Sorry
:php
is back on trackdefine('BYPASS_STATIC', false)
and define('BYPASS_STATIC', FALSE)
are supportedrender_template
function to not waste CPU time on SHA calculation when static rendering is not requiredFull diff from previous release https://github.com/welaika/wordless/compare/4.1.0...5.0.0
render_partial()
. New practices are reflected in the updated documentation @ https://wordless.readthedocs.io/en/5.0.0/_pages/usage/rendering_pug.html
render_static()
is provided as a strategy to cache partials or whole templates as static HTML files. Usage and info documented @ https://wordless.readthedocs.io/en/5.0.0/_pages/appendix/render_static.html. This tool works only with PUG files.Wordless\Component
is provided as a device to write visual components in PUG with validated parameters using PUG's builtins mixins
. You can read ratio and usage @ https://wordless.readthedocs.io/en/5.0.0/_pages/usage/filters.html#wordless-pug-configuration
Please be sure to welcome the new "pure PUG" convention, since it will determine a serious performance improvement. Should you have problems refactoring an old theme in order to update it to the new conventions, feel free to open an issue (or ping me in private company chat).
Version 5, while introducing a lot of new practices, naming conventions and scaffolding, retains full compatibility with 4.1's themes.
Big ups to @danielegiorgis who put a lot of effort in this major release.
This release comes with only one big feature: Wordless vanilla theme now is shipped with preconfigured E2E test suite.
Documentation is updated accordingly, so you can read more about this at https://wordless.readthedocs.io/en/latest/_pages/usage/test_suite.html
yarn setup
task instead of the old yarn install
); pay attention to the documentation on your next setupEnjoy! 🌸
Full diff from previous release https://github.com/welaika/wordless/compare/3.0.1...4.0.0
This is a major update because it's considered a breaking one. Updating the plugin from 3.x to 4.0.0 should be safe, but you cannot upgrade an existing theme with new configurations. This is true mainly due to the new default supported syntaxes (SCSS and ES2015)
create_acf_block
)Wordless
classnew_taxonomy
with most recent WP versionswp wordless theme upgrade
: now it is no more intended to upgrade from non-webpack themes to a webpack one, but simply updating theme's build configurations to the new shipped ones