Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Releases: Stillat/blade-parser

2.0.0

21 Feb 23:44
@JohnathonKoster JohnathonKoster
d6df786
This commit was created on GitHub.com and signed with GitHub’s verified signature.
GPG key ID: B5690EEEBB952194
Verified
Learn about vigilant mode.

Choose a tag to compare

What's Changed

  • Minimum PHP version is now 8.2.0
  • Added support for Laravel 12
  • Dropped support for Laravel 9
  • Updated dev dependencies
Assets 2
Loading

1.10.3

24 Jan 01:55
@JohnathonKoster JohnathonKoster
cc0c377
This commit was created on GitHub.com and signed with GitHub’s verified signature.
GPG key ID: B5690EEEBB952194
Verified
Learn about vigilant mode.

Choose a tag to compare

  • Improves parsing of component attribute echo values
Loading

1.10.2

27 Nov 20:26
@JohnathonKoster JohnathonKoster
959cdda
This commit was created on GitHub.com and signed with GitHub’s verified signature.
GPG key ID: B5690EEEBB952194
Verified
Learn about vigilant mode.

Choose a tag to compare

Contributors

vintagesucks
Loading

1.10.1

17 Oct 15:46
@JohnathonKoster JohnathonKoster
7d0180b
This commit was created on GitHub.com and signed with GitHub’s verified signature.
GPG key ID: B5690EEEBB952194
Verified
Learn about vigilant mode.

Choose a tag to compare

  • Restores support for PHP 8.1
Loading

1.10.0

16 Oct 23:15
@JohnathonKoster JohnathonKoster
163130b
This commit was created on GitHub.com and signed with GitHub’s verified signature.
GPG key ID: B5690EEEBB952194
Verified
Learn about vigilant mode.

Choose a tag to compare

This release adds a few new helper methods:

  • toDocument() on DocumentParser simplifies the process of converting an existing DocumentParser to a Document instance
    • toDocument will resolve structures on the document by default. To prevent this, simply supply false when calling (i.e., toDocument(false))
  • parseTemplate on DocumentParser parses the input like the existing parse method, but will return the DocumentParser instance instead of a node array

New AttributeCompiler

The AttributeCompiler is a new compiler service that can be used to compile attributes/parameters on a parsed ComponentNode. The AttributeCompiler implementation will use the core Laravel compiler for content that contains interpolated values.

Usage:

<?php
use Stillat\BladeParser\Parser\DocumentParser;
use Stillat\BladeParser\Compiler\CompilerServices\AttributeCompiler;
$template = <<<'TEMPLATE'
<prefix:component
 parameter="content"
 :binding="$theVariable"
/>
TEMPLATE;
$params = (new DocumentParser)
 ->onlyParseComponents()
 ->registerCustomComponentTags(['prefix'])
 ->parseTemplate($template)
 ->toDocument()
 ->getComponents()
 ->first()
 ->parameters;
$compiler = new AttributeCompiler;
$result = $compiler->compile($params);

After compilation, $result would contain the following:

['parameter'=>'content','binding'=>$theVariable]
Loading

1.9.0

13 Oct 21:24
@JohnathonKoster JohnathonKoster

Choose a tag to compare

  • Bumps the minimum PHP version to 8.2
  • Migrates the test suite to Pest
  • Code cleanup/formatting 🧹
  • Improves parsing of HTML fragments and attributes/parameters
Loading

1.8.0

16 Apr 23:16
@JohnathonKoster JohnathonKoster
ea05ebf
This commit was created on GitHub.com and signed with GitHub’s verified signature.
GPG key ID: B5690EEEBB952194
Verified
Learn about vigilant mode.

Choose a tag to compare

  • Adds new helper methods to determine the type of an EchoNode
    • EchoNode::isRaw(), EchoNode::isTriple(), and EchoNode::isRegular()
Loading

1.7.2

15 Mar 01:46
@JohnathonKoster JohnathonKoster
de29c22
This commit was created on GitHub.com and signed with GitHub’s verified signature.
GPG key ID: B5690EEEBB952194
Verified
Learn about vigilant mode.

Choose a tag to compare

  • Improves validation of @parent directive. Thanks @ernix 🥳

Contributors

ernix
Loading

1.7.1

04 Mar 01:06
@JohnathonKoster JohnathonKoster
4cb4888
This commit was created on GitHub.com and signed with GitHub’s verified signature.
GPG key ID: B5690EEEBB952194
Verified
Learn about vigilant mode.

Choose a tag to compare

  • Corrects an issue with directory cleanup #29 (thanks @ernix !)

Contributors

ernix
Loading

1.7.0

22 Feb 00:00
@JohnathonKoster JohnathonKoster
fc42f29
This commit was created on GitHub.com and signed with GitHub’s verified signature.
GPG key ID: B5690EEEBB952194
Verified
Learn about vigilant mode.

Choose a tag to compare

  • Updates dependencies to allow Laravel 11
  • Refactors some tests
Loading
Previous 1 3
Previous

AltStyle によって変換されたページ (->オリジナル) /