Skip to content

Best practice: including interactive HTML #185

Discussion options

You must be logged in to vote

Adding this to LiaScript as a fallback, would be an interesting feature ...

However, you can create a custom macro for this, and use it with the link/url syntax. You can try this out here:

example

The code looks like follows, and to my knowledge, iframe and srcdoc are the only option to accomplish this. This will work only, if no other recources, like script-urls of css are embedded with a relative URL into the original text-file.
By writing @[macro(param, param)](url), LiaScript will expect the last parameter to be the URL and therefor also check if it is relative or absolute. Thus, this way, you can refer also to local resources in your project and LiaScript will handle the appropriate …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@tilman-schieber
Comment options

Answer selected by tilman-schieber
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants