Syntax::ASP(3pm)

πŸ“¦
version 2.5.0 Β· 2 versions
, in ubuntu jammy

πŸ’– NAME πŸ’–

okay so bestie, this is Embperl::Syntax::ASP β€” the ASP syntax module for Embperl. that's it, that's the name, slay.


✨ SYNOPSIS ✨

like, here's the whole vibe in one look:

[$syntax ASP $]

<% $a = 1 ; %>
<table>
    <% foreach (1..5) { %>
        <tr>
            <td><%= $_ %></td>
            <td><%= $a += 2 %></td>
        </tr>
    <% } %>
</table>

no cap, that's a whole loop living inside your HTML. iconic behaviour honestly. πŸ¦‹


🌸 DESCRIPTION 🌸

so the tea is: this module adds the ASP syntax to Embperl. when you pick ASP as your syntax, Embperl suddenly understands these two tags, and only these two:

  • <% %> β€” between <% and %> you can drop any Perl code that should be executed. go off, run your code, live your truth. πŸ’…
  • <%= %> β€” between <%= and %> you put a valid Perl expression, and the result of that expression gets inserted instead of the whole <%= %> block. it's giving "print but cuter". ✨

that's literally it, bestie. two tags. main character energy only. πŸ‘‘


🫢 Author 🫢

Gerald Richter <richter at embperl dot org> β€” the loml who wrote this, we stan. πŸ’œ


πŸŽ€ See Also πŸŽ€

  • Embperl::Syntax β€” go read it, iykyk. πŸ“š

and that's the whole page!! this was perl v5.34.0, dated 2022-02-06, and it lives under Syntax::ASP(3pm). mwah, bye bestie πŸ“πŸ§šπŸ’–

πŸ“¦ where this page comes from