<feed xmlns='http://www.w3.org/2005/Atom'>
<title>luci/applications/luci-app-example/root/etc/uci-defaults/80_example, branch master</title>
<subtitle>Lua Configuration Interface (mirror)</subtitle>
<id>https://git.openwrt.org/project/luci/atom?h=master</id>
<link rel='self' href='https://git.openwrt.org/project/luci/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/luci/'/>
<updated>2026-10-07T17:38:49Z</updated>
<entry>
<title>luci-app-example: add a JSONMap example that saves to a file</title>
<updated>2026-10-07T17:38:49Z</updated>
<author>
<name>Victor Irzak</name>
</author>
<published>2026-10-02T21:38:32Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/luci/commit/?id=d175293945618269d4e355a38d860efb2fbcb106'/>
<id>urn:sha1:d175293945618269d4e355a38d860efb2fbcb106</id>
<content type='text'>
The existing JSONMap examples are read-only and leave saving as an
exercise ("you would need to define custom handlers"). Add a view that
edits /etc/example.json with a JSONMap - a named section and an
add/remove list - and saves it: handleSave() calls map.save() with a
callback that reads the sections back from map.data, restores numbers
(the form stores strings) and writes the file with fs.write().

The UCI defaults script seeds the file, and the ACL grants read and
write on it in the file scope.

Signed-off-by: Victor Irzak &lt;victor@irzak.com&gt;
</content>
</entry>
<entry>
<title>luci-app-example: rewrite RPC side using ucode</title>
<updated>2025-02-03T14:07:18Z</updated>
<author>
<name>George Sapkin</name>
</author>
<published>2025-02-03T13:55:55Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/luci/commit/?id=f32d9204a7f5351ac708d839313526e0c9dba7a8'/>
<id>urn:sha1:f32d9204a7f5351ac708d839313526e0c9dba7a8</id>
<content type='text'>
Signed-off-by: George Sapkin &lt;george@sapk.in&gt;
</content>
</entry>
<entry>
<title>luci-app-example: Update with more documentation, more examples (#6503)</title>
<updated>2023-12-04T21:12:28Z</updated>
<author>
<name>Duncan Hill</name>
</author>
<published>2023-12-04T21:12:28Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/luci/commit/?id=28f805b2e5f95e04515bd7d045a103cc3a366c2c'/>
<id>urn:sha1:28f805b2e5f95e04515bd7d045a103cc3a366c2c</id>
<content type='text'>
* luci-app-example: Update with more documentation, examples
* Update translations file
* Move more YAML support to .md file, improve README
* luci-app-example: Update with more documentation, examples
* luci-app-example: Fix missed call to load_sample_yaml
* Format with tabs by using jsbeautify</content>
</entry>
<entry>
<title>luci-app-example: add app</title>
<updated>2021-10-22T20:02:53Z</updated>
<author>
<name>Andreas Bräu</name>
</author>
<published>2021-10-10T22:22:15Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/luci/commit/?id=02a86624ec02ec797f7156cc7f8b9057975ab34b'/>
<id>urn:sha1:02a86624ec02ec797f7156cc7f8b9057975ab34b</id>
<content type='text'>
add a minimalistic example app for modern js-based apps

Signed-off-by: Andreas Bräu &lt;ab@andi95.de&gt;
</content>
</entry>
</feed>
