Vote count: 0
I'm trying to pass variables inside Phoenix EEx templates. So far, so good, but I'm not handling this simple string interpolation:
<a href="<=% @url %>" class="core secondChild Item">
I want the equivalent in Javascript to:
<a href="'+<=% @url %>+'" class="core secondChild Item">
so that I can pass url as a variable when calling the template an build a URL inside the href=""
.
asked 19 secs ago
This entry passed through the Full-Text RSS service - if this is your content and you're reading it on someone else's site, please read the FAQ at http://ift.tt/jcXqJW.
Phoenix: string interpolation inside eex file
Aucun commentaire:
Enregistrer un commentaire