direktspeed / tag-html

Efficient, Fast ,Expressive, Extensible HTML templates with JavaScript Tagged Template Literals that render in any Environment
Apache License 2.0
2 stars 1 forks source link

Manual #15

Open frank-dspeed opened 3 years ago

frank-dspeed commented 3 years ago

// This Methods are not designed to get called via () as they assume the existence of the .raw property on the first arrgument

html`` 
renderString``

After that the methods are in general save to get called directly

renderLiteral

theRunInContext Stuff is Tricky but Nice

Write Components as Class or Function

Depending on your usecase it is most time the best to code a Component as a single Function that returns a string. when you want to make it interactive in the browser you have 3 choices