lang: funcs: Autogenerated a lot of new functions

Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
This commit is contained in:
Julien Pivotto
2019-05-15 01:11:36 +02:00
committed by James Shubin
parent 9b4d11f220
commit 1685ee1ecb
18 changed files with 671 additions and 204 deletions

10
examples/lang/html.mcl Normal file
View File

@@ -0,0 +1,10 @@
import "golang/html"
import "fmt"
$text1 = html.unescape_string("&lt;h1&gt;MGMT!&lt;/h1&gt;")
$text2 = html.escape_string("Test & Re-Test\n")
file "/tmp/index.html" {
state => "exists",
content => "${text1}${text2}",
}