lang: funcs: Autogenerated a lot of new functions
Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
This commit is contained in:
committed by
James Shubin
parent
9b4d11f220
commit
1685ee1ecb
10
examples/lang/html.mcl
Normal file
10
examples/lang/html.mcl
Normal file
@@ -0,0 +1,10 @@
|
||||
import "golang/html"
|
||||
import "fmt"
|
||||
|
||||
$text1 = html.unescape_string("<h1>MGMT!</h1>")
|
||||
$text2 = html.escape_string("Test & Re-Test\n")
|
||||
|
||||
file "/tmp/index.html" {
|
||||
state => "exists",
|
||||
content => "${text1}${text2}",
|
||||
}
|
||||
Reference in New Issue
Block a user