Core

/views/components/fieldview/Code.html (283 B)

1
2
3
4
5
6
7
8
{% import (
"{{{ .Package }}}/app/controller/cutil"
) %}

{% func Code(content string, lang string) %}{% stripspace %}
{% code out, err := cutil.FormatLang(content, lang) %}
{% if err == nil %}{%s= out %}{% else %}{%s err.Error() %}{% endif %}
{% endstripspace %}{% endfunc %}