Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stempler Import Directory does not work when mixed with HTML #1154

Open
enyancc opened this issue Oct 4, 2024 · 0 comments
Open

Stempler Import Directory does not work when mixed with HTML #1154

enyancc opened this issue Oct 4, 2024 · 0 comments
Labels

Comments

@enyancc
Copy link

enyancc commented Oct 4, 2024

Description

Adding <use:dir/> tag within template that contains HTML would try to resolve regular tags as templates.

How To Reproduce

views/home.dark.php

<extends:layout.base title="[[The PHP Framework for future Innovators]]"/>
<use:dir dir="partials" ns="partials"/>
<stack:push name="styles">
    <link rel="stylesheet" href="/styles/welcome.css"/>
</stack:push>

<define:body>
    <h1 class="main-title">The PHP Framework <span>for future Innovators</span></h1>
    <partials:router-link />
</define:body>

views/partials/router-link.dark.php

<a href="test.php">test</a>

throws exception "Unable to resolve import link"

<extends:layout.base title="[[The PHP Framework for future Innovators]]"/>
<use:dir dir="partials" ns="partials"/>
<stack:push name="styles">
    <link rel="stylesheet" href="/styles/welcome.css"/> <!------ HERE  ->
</stack:push>
 
<define:body>
    <h1 class="main-title">The PHP Framework <span>for future Innovators</span></h1>
    <partials:router-link/>
</define:body>

Additional Info

Q A
Framework Version 3.14.5
PHP version 8.3.4
Operating system Linux
@enyancc enyancc added the Bug label Oct 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant