Yes, my bad. Javascript. Something I should have learned more about in hindsight and am now catching up slowly. Guess I’ll continue reading and watching videos. Hopefully will get up to speed over the next twelve months.
Wappler JS code is also a pretty good source of knowledge. As you already understand the outcome it’s easy to connect the dots.
When’s the classic ASP version coming? My IIS 6.0 is waiting.
Exactly!
When is Classic ASP extensibility coming?
I’m close to finishing it.
i’ve been testing extensively and squashing some bugs.
Here a new example more in line with what you would expect.
So given this data:
{
"invoice" : "#650RGE-0051",
"user": {
"name": "Matthew",
"gender": "male",
"address": "Matthew S. Bronson, 102 Duck Creek Road, Palo Alto, CA 94306"
},
"order": {
"items": [
{
"title": "Collective Multi Watch",
"image_URL": "https://res.cloudinary.com/kissassets/image/upload/v1556260256/ynyzkfvtdbjkhr8gf98k.jpg",
"price": {
"currency": "$",
"amount": 115.99
},
"quantity": 1
},
{
"title": "Moccamaster Coffee Brewer",
"image_URL": "https://res.cloudinary.com/kissassets/image/upload/v1556260256/xpyck59d9q5396n6yvbw.jpg",
"price": {
"currency": "$",
"amount": 310.99
},
"quantity": 1
},
{
"title": "Digital Instant Print Camera",
"image_URL": "https://res.cloudinary.com/kissassets/image/upload/v1556260256/rdgfgpemfzjzqai4en8o.jpg",
"price": {
"currency": "$",
"amount": 59.99
},
"quantity": 1
}
],
"shipping": {
"carrier": "Fedex",
"currency": "$",
"amount": 10
},
"total": {
"currency": "$",
"amount": 486.97
},
"payment": {
"method": "Visa",
"4digits": "4354",
"amount": 496.97
}
}
}
When you use it as data source for your Email template
step:
And you have an MJML template:
You can use repeating blocks like the following inside your mjml template:
{{#each data.order.items}}
<tr>
<td style="padding:15px 0;">
<img style="vertical-align:middle" width="40px" src={{this.image_URL}} /> {{this.title}}
</td>
<td style="padding:15px 0;">{{this.quantity}}</td>
<td style="padding:15px 0;">{{this.price.currency}}{{this.price.amount}}</td>
</tr>
{{/each}}
So when you send an email with the content generated by the Email template
step
You get something like this:
Which will always look great in any device, viewport, OS, and email software.
On my mobile phone:
This looks amazing!
Thanks for sharing once again @JonL!! Will probably have a great use for this soon.
You fill in a lot of the current gaps of Wappler. Thank you so much!
Was this finished/released? Could really use this for my project!
Give me a few days and I’ll package it into something usable.
Is your future package usable by beginners like me?
Maybe you’ve shared some instructions already?
I hope so. Unfortunately I haven’t progressed as holidays got in the middle. I will resume work on it in September.
I’m surprised Wappler team hasn’t introduced this yet. It’s much needed.
I’m interested in this too, it really looks great.
Sorry guys. Not ready yet
I saw some time ago that this is in the roadmap for Wappler features. So I didn’t invest more time on it. I mean I have something working for my needs(which are very specific) but didn’t think it was worth investing more if it is going to be built eventually.
Also it was nodejs, did you migrate?
Migrating now, slowly, LOL
You can use Array Lists as per: