Skip to content

Commit

Permalink
remove docs from master oops
Browse files Browse the repository at this point in the history
  • Loading branch information
1cg committed Jun 15, 2023
1 parent 27e9658 commit c825573
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 17 deletions.
2 changes: 0 additions & 2 deletions www/docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -430,8 +430,6 @@ Here is a table of available symbols:
the detail of the event that triggered the current handler, if any
`sender`
the element that sent the current event, if any
`cookies`
a convenient mechanism for accessing cookies in hyperscript
{% endsyntaxes %}

Note that the `target` is the element that the event *originally* occurred on.
Expand Down
15 changes: 0 additions & 15 deletions www/expressions.md
Original file line number Diff line number Diff line change
Expand Up @@ -402,21 +402,6 @@ DOM tree
</div>
```

## The Cookies Symbol

The `cookies` symbol is an automatically available symbol in all contexts that presents a
[localStorage](https://developer.mozilla.org/en-US/docs/Web/API/Window/localStorage)-like API for accessing cookies:

```hyperscript
set cookies.myCookie to 'foo' # sets the cooke 'myCookie' to the value true, forever
set cookies['myCookie'] to 'bar' # updates the previous cookies value
cookies.clear('myCookie') # clears the given cookie
cookies.clearAll() # clears all cookies
cookies.length # returns the number of cookies
cookies[0] # returns the first cookie as a {name:<name>, value:<value>} struct
for c in cookies ... end # iterates over all cookies as {name:<name>, value:<value>} structs
```

</div>

</div>

0 comments on commit c825573

Please sign in to comment.