I have a Ruby on Rails application with mailers that use slim for the views.
I want to mark up an email with the Google markup format.
It calls for a script tag with the type of JSON-LD, like this:
<script type="application/ld+json">
My email view is written in slim. I know I can create a script tag that doesn't have a type set in slim by prefacing it with javascript:
, but the type will not be set that way.
How can I set the type to JSON-LD in a slim template?
I want to put the Javascript in the script block rather than load it from a src, unlike the person who asked this question: Custom Javascript type with Rails and Slim
Thanks!