Share Brilliantly
davinci css
let html = {
target:'content',
$html()=>'HTML goes here'
}
let html = html.url('http://www.server.com/template.html');
dv.render(html, {target:'content'});
let rd = await import("/lib/functional-state/v1.0.0/functional-state.mjs");
let html = await import("/lib/functional-state/library/v1.0.0/html.mjs");
let data = {
$process:($val)=>{
$val.set('obj', {
message:'hello world'
});
}
};
let text = html.html('The message is {= $val("obj").message =}');
rd.render([data, text],{target:'content'});
let text = html.html('The message is {= $val("obj").message =}', {
target:'content'
}});
rd.render([data, text]);
import("/lib/davinci/v1.0.0/davinci.mjs").then(async (dv)=>{
let ht = await import("/lib/davinci/library/v1.0.0/html.mjs");
let html = ht.html(`{: let ts = await import('/lib/davinci/library/v1.0.0/test.mjs');
print(ts.hello()) :}`,{ target:'content1'});
dv.render(html);
});
import("/lib/davinci/v1.0.0/davinci.mjs").then(async (dv)=>{
let ht = await import("/lib/davinci/library/v1.0.0/html.mjs");
let html = ht.html(`{= ts.hello() =}`,{ target:'content1', modules:{ ts : '/lib/davinci/library/v1.0.0/test.mjs'}});
dv.render(html);
});