Using with Blade templates
See original GitHub issueHello. HEML looks super useful! I’d like to use it to build our Blade templates (for use with Laravel), however, I’m wondering how to get around the following issue.
For example, in my Blade file, I use
<a href="http://{{ $domain }}/auth/verify/{{ $user['confirmation'] }}">@lang('email.confirm_button')</a>
I want the contents inside the {{ }}
tags to effectively be ignored by HEML. It mostly works, but there’s a problem with the quotation marks. Using the online editor, the above gives
<a href="http://{{ $domain }}/auth/verify/{{ $user['confirmation'] }}" class="a"><span class="a__text">@lang('email.confirm_button')</span></a>
which is almost perfect, but the '
is replaced by '
.
If I include heml-ignore
on the tag then the template parts work, but then I lose the HEML specific additions for a link.
<a href="http://{{ $domain }}/auth/verify/{{ $user['confirmation'] }}" heml-ignore="">@lang('email.confirm_button')</a>
Any ideas? Thanks!
Issue Analytics
- State:
- Created 6 years ago
- Comments:17 (4 by maintainers)
Top Results From Across the Web
Blade Templates - The PHP Framework For Web Artisans
Blade template files use the .blade.php file extension and are typically stored in the resources/views directory.
Read more >Laravel - Blade Templates - Tutorialspoint
Laravel - Blade Templates, Laravel 5.1 introduces the concept of using Blade, a templating engine to design a unique layout. The layout thus...
Read more >How to Create Layout Using Laravel Blade [Ultimate Guide]
Here's the simple guide on how to create and get a fully ready layout in Laravel using Blade templating engine in just a...
Read more >Blade Templates // Statamic 3 Docs
You can use Tags in Blade templates with a Laravel-style fluent syntax. Instantiate your tag with the Statamic::tag() method and chain parameters as...
Read more >Laravel Blade Template - Javatpoint
The blade allows to use the templating engine easily, and it makes the syntax writing very simple. The blade templating engine provides its...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Fantastic! I’m excited to try it out. Thank you so much, @avigoldman.
Sounds good 👍
The only problem I can think of is that there are many different template systems out there. Ejs is quite common in the Node.js community and uses
<%
and%>
. Some moustache flavours uses only a single{
and}
.edit: didn’t read the last message, seems good 👍