_hyperscript icon indicating copy to clipboard operation
_hyperscript copied to clipboard

Unexpected Token : render

Open pradeeproark opened this issue 2 years ago • 2 comments

Is the render command as described in here exported in the distribution on unpkg?

I can't get https://hyperscript.org/commands/render/ to work.

<a _="on click render #address-title with (a:1) then put it into #address_type">addressed?</a>

"Unexpected Token : render

on click render #address-title with (a:1) then put it into #address_type

pradeeproark avatar Nov 17 '23 19:11 pradeeproark

This command is available by including the dist/template.js file. It's not included in the main file. It's similar to the worker situation, which is documented here.

samueldominguez avatar Nov 20 '23 00:11 samueldominguez

Thank you, that works @samueldominguez , can someone take a look at the related PR to update this info in the doc. Would save some time for someone using this feature.

pradeeproark avatar Nov 29 '23 20:11 pradeeproark