Is it possible to add a template.ss file via php, like a requirement::javascript?

<%- if @topic_view.topic.tags.present? %>
<%= t 'js.tagging.tags' %>: <%- @topic_view.topic.tags.each do |t| %> <%= t %> <%- end %>
<% end %>

SS4.4
Is it possible to add a template.ss file via php, like requirement::javascript i.e?
I wrote a module that needs to add some markup to page.ss.
How can I do that without changing Page.ss or anything else which is not included into the module-stack.

Do you need to specifically add something to Page.ss, or to the page which gets rendered?

If it’s the latter, you could just use a middleware… that will give you access to the complete output from the site, and you can manipulate it as you see fit:

1 Like

I have exteneded Varchar before and added functions there / changed them.

Then in templates you can write:

$Email.Hidden or $MyPercentage.Nice

Also - you could consider: just adding the HTML via Javascript using Requirements.