A set of Blade directives for use with Roots Sage.
@style
to @stylesheet
(Fixes #142)@image
directive (Fixes #135, Fixes #117)@thememod
directive (#102)composer.lock
to .gitignore
@image
documentationFull Changelog: https://github.com/Log1x/sage-directives/compare/v2.0.2...v2.0.3
[!IMPORTANT] Read the v2.0.0 release notes.
🚀 This release closes every remaining issue.
$loop
variable support to @posts
(#96)$loop
variable support to @repeat
@field
format value (Fixes #43) (#97)@posts
tests for $loop
support@repeat
test for $loop
support$loop
to the @posts
docs section@field
format values@posts
test[!IMPORTANT] Sage Directives v2.0.0 drops support for Sage 9, PHP 7.x, and PHP 8.0.
[!WARNING] Breaking Changes
All Font Awesome (
@fa
,@fab
, etc.) directives have been removed. Use Blade Icons instead. Otherwise, this release should fix way more then it breaks and now has full test coverage matching examples in the docs.
@term
and @terms
example parameters@published
and @modified
directives with custom date format (Fixes #57)@noposts
(Fixes #59) (#60).gitignore
/tests
to .gitattributes
CHANGELOG.md
Utilities
class to Util
isIdentifier
utility as needed<?=
to <?php echo
roots/acorn
, pestphp/pest
, and laravel/pint
as dev-dependenciessage-svg
suggestionacorn
to package keywords@published
and @modified
using custom date formatstr_replace
on implode@role
(Fixes #49)@role
@role
@postmeta
directive (Fixes #79)@postmeta
@postmeta
to the docs@postclass
directive (Fixes #31)@postclass
@postclass
to the docs@sidebar
, @hassidebar
, and @endhassidebar
directive (Fixes #71)@sidebar
, @hassidebar
, and @endhassidebar
@sidebar
to the docsACF
to Acf
@__
translate directive (#38)@hasfields
and @endhasfields
directives (#52)log1x/sage-directives/namespace
filter for overriding default namespace (#33)@hasoptions
& @endhasoptions
(#54)@term
(#55)@set
to accept a value containing commas (e.g. an array) (Fixes #28)raw
as the second parameter of @image
to return an attachment URL (Fixes #24)$limit
parameter to the parse
method to allow passing a limit to explode()
(#28)@image
example for raw