Replies: 2 comments 3 replies
-
yeagh, cool idea, thank you! Created #2486 |
Beta Was this translation helpful? Give feedback.
2 replies
-
It's also nice to support Mojolicious format for __DATA__, with multiple
files named after double @
```
…__DATA__
@@ index.html.ep
% layout 'default';
%= form_for index => begin
% if (param 'user') {
<b>Wrong name or password, please try again.</b><br>
% }
Name:<br>
%= text_field 'user'
<br>Password:<br>
%= password_field 'pass'
<br>
%= submit_button 'Login'
% end
@@ source.json
{
"id": 1,
"value": 10
}
...
```
вт, 19 апр. 2022 г. в 08:20, Alexandr Evstigneev ***@***.***>:
yeagh, cool idea, thank you!
—
Reply to this email directly, view it on GitHub
<#2485 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABHSX4JDKK3GYIBJIRBG7PLVFY7AXANCNFSM5TXMNHIQ>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***
com>
--
С уважением,
Илья Рассадин.
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Would it be possible to annotate the __DATA__ section so that the IDE formats it correctly? For example, if I'm storing YAML in the __DATA__ section I would like to do something like this:
This currently works for here-docs but not for the __DATA__ section. I've also seen people store Perl code in the __DATA__ section and pull it in with
eval
. In this case it would nice if we could annotate it with#@inject PERL5
.Thanks
Kent
Beta Was this translation helpful? Give feedback.
All reactions