Rendering an ISML Template in SFRA (Salesforce Commerce Cloud)

‘use strict’;

var server = require(‘server’);

server.get(‘Show’, locale, function (req, res, next) {

res.render(‘ISMLTest’, {myparam: “Hello from ISML”});

next();

});

module.exports = server.exports();

<h1 style=”background-color:purple;”>${pdict.myparam}<h1>

--

--

--

Salesforce enthusiast, wanderer, finding the beauty all around us.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Javascript and Functional Programming: An Introduction

Let’s Build a Pre-render Website with Next.js and Deploy to Vercel

jQwidgets Grid with React Features

🔥 Heresy: mappedAttributes, fragment, and define-less components

A simple Firebase solution to enable location based authentication in your web application

The Web smallest DOM diffing library

Web Components Dashboard with Smart HTML Elements

Virtual Internship Program Experience (LGMVIP’21) at LetsGrowMore

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Sumit Vadhera

Sumit Vadhera

Salesforce enthusiast, wanderer, finding the beauty all around us.

More from Medium

SMS & eFax Guru

End Chat in the Service Cloud Web Chat functionality

What is SFRA (Salesforce Commerce Cloud)?

Mark Your Calendars: Best Salesforce Events Jan 17, 2022 — Jan 21, 2022