Golang: custom template function "capture" -



I want to type a template function such as smerty capture . How can I capture HTML

  {{capture}} ... ... {{/ capture}}   

How to do this?

You will do this in the application: Use the template for the HTML snippet that you want to capture, Render it, save it in a string, and use it in subsequent templates rendering.

Comments

Popular posts from this blog

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -

Matlab transpose a table vector -

c# - Textbox not clickable but editable -