tmpl: add a <div> test

pull/11565/head
Alexander Medvednikov 2021-09-21 02:11:33 +03:00
parent 1430ebc5e3
commit 4aa99e4303
3 changed files with 9 additions and 0 deletions

View File

@ -270,6 +270,9 @@ fn (mut g Gen) sql_insert(node ast.SqlStmtLine, expr string, table_name string,
}
fn (mut g Gen) sql_update(node ast.SqlStmtLine, expr string, table_name string) {
// println(table_name)
// println(expr)
// println(node)
g.write('update(${expr}._object, _SLIT("$table_name"), (orm__QueryData){')
g.write('.kinds = new_array_from_c_array(0, 0, sizeof(orm__OperationKind), NULL),')
g.write('.is_and = new_array_from_c_array(0, 0, sizeof(bool), NULL),')

View File

@ -34,6 +34,9 @@ const classes = `header ${ isLargeScreen() ? '' :
<header>
<h1>@{title}</h1>
<p>@title</p>
.hello {
<b>hi</b><br>
}
<a href="@website.link">@website.link</a>
<a href="mailto:example@@@website.link">Email</a>
</header>

View File

@ -34,6 +34,9 @@ const classes = `header ${ isLargeScreen() ? '' :
<header>
<h1>TEST</h1>
<p>TEST</p>
<div class="hello">
<b>hi</b><br>
</div>
<a href="example.com">example.com</a>
<a href="mailto:example@example.com">Email</a>
</header>