kattrali / webkitten

A command-driven web browser toolkit inspired by luakit and Vim.

Home Page:https://webkitten.delisa.me

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Allow reading configuration options from plugins

kattrali opened this issue · comments

Plugins may need custom or default configuration options, and should be able to read them from the binding. Examples:

-- Read a string value
config_str("window.start-page")
config_site_str("stylesheet-path")
-- Read a bool value
config_bool("allow-plugins")
config_site_bool("allow-plugins")

Fixed by e486e7c