Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
shahrul committed Oct 13, 2024
1 parent 160a285 commit d61d837
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,3 +86,14 @@ return <ul class="filters" _="on load set $filter to me">
```

See the test folder to see more usage cases.

## Caveats

> Since nodeName such `div`, `p`, etc+ are used as declared variables, so do NOT declare a function with the same name i.e.,
```lua
local function li()
return <li>todo 1</li>
end

```
2 changes: 1 addition & 1 deletion luax.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ local originalRequire = require

local function resetTable(store, data)
for key, value in pairs(data) do
-- ignore output amd pos
-- ignore output and pos
if key ~= "output" and key ~= "pos" then
store[key] = value
end
Expand Down

0 comments on commit d61d837

Please sign in to comment.