Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update render command documentation to include a note on installation #497

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 7 additions & 0 deletions www/commands/render.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@ title: render - ///_hyperscript

## The `render` command

### Installing

Note: if you want the template command, you must include the /dist/template.js file in addition to the hyperscript script
~~~ html
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would suggest using ```html instead, which is in line with how html code blocks are written in other places in this file.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for checking @nicobako . I picked the syntax above for referencing the script from

~~~ html
. And it renders it like same when building and testing the docs locally.

Screenshot 2023-12-16 at 14 51 36

<script src="https://unpkg.com/hyperscript.org@0.9.12/dist/template.js"></script>
~~~

### Syntax

`render <template> with (<arg list>)`
Expand Down