LuCI - OpenWrt Configuration Interface
The ucode-mod-html library provides assorted utility functions for dealing with HTML markup data. Example usage: #!/usr/bin/ucode 'use strict'; import { tokenize, striptags, entitydecode, entityencode, OPEN, ATTR, TEXT, CLOSE, RAW, COMMENT, CDATA, PROCINST, EOF } from 'html'; tokenize('<div class="example">Hello world!</div>...', function(type, text, value) { switch (type) { case OPEN: print(`Opening tag: ${text}\n`); break; case ATTR: print(`Attribute: ${text}${value ? `=${value}`}\n`; break; case TEXT: print(`Text data: ${text}\n`); break; case CLOSE: print(`Closing tag: ${text}\n`); break; case RAW: print(`Script/CSS: ${text}\n`); break; case COMMENT: print(`Comment: ${text}\n`); break; case CDATA: print(`CDATA text: ${text}\n`); break; case PROCINST: print(`<!...> tag: ${text}\n`); break; case EOF: print(`End of input\n`); break; } } ); print(striptags('<p>This is some <b>text</b> with <br> markup</p>\n')); print(entitydecode('<   & ä')); print(entityencode('1 < 2 && "foo"')); Signed-off-by: Jo-Philipp Wich <jo@mein.io> |
||
---|---|---|
.github | ||
applications | ||
build | ||
collections | ||
contrib/package | ||
docs | ||
libs | ||
modules | ||
protocols | ||
themes | ||
.gitignore | ||
CONTRIBUTING.md | ||
jsdoc.conf.json | ||
LICENSE | ||
luci.mk | ||
NOTICE | ||
package.json | ||
README.md |
OpenWrt luci feed
Description
This is the OpenWrt "luci"-feed containing LuCI - OpenWrt Configuration Interface.
Usage
This feed is enabled by default. Your feeds.conf.default (or feeds.conf) should contain a line like:
src-git luci https://github.com/openwrt/luci.git
To install all its package definitions, run:
./scripts/feeds update luci
./scripts/feeds install -a -p luci
API Reference
You can browse the generated API documentation directly on Github.
Development
Documentation for developing and extending LuCI can be found in the Wiki
License
See LICENSE file.
Package Guidelines
See CONTRIBUTING.md file.