How it works...
This recipe looks at heist as a template framework where we loaded a template HelloWorld from a template directory. The template requires the arguments name and familyname. The values of these arguments or tags are inserted in the HeistState. Then we run the HeistT monad with the evalHeistT function by supplying the state.
The heist framework inserts the splices (named HeistT), and runs the evaluation for the template by using values supplied in the state.
In this recipe, we used the Heist.Interpreted module. The heist library also provides the Heist.Compiled library. The major difference is that the interpreted module evaluates the DOM at runtime, whereas the compiled module does DOM evaluation at the load time, reducing ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access