Expand description
Lua API functions for rs-web
This module provides all Lua functions available in config.lua, organized by category for maintainability.
Usage in Lua:
local rs = require("rs-web")
local content = rs.read_file("path/to/file.md")
local html = rs.render_markdown(content)Re-exports§
pub use tracker::BuildTracker;pub use tracker::CachedDeps;
Modules§
- tracker
- Build dependency tracker for incremental builds
Structs§
- LuaClass
- A Lua class/table type definition
- LuaField
- A field in a Lua class
- LuaFunction
- A Lua function definition
- LuaParam
- A Lua function parameter
Functions§
- generate_
emmylua - Generate EmmyLua type definitions
- generate_
markdown - Generate Markdown API documentation
- is_
path_ within_ root - Check if a path is within the project root (for sandbox enforcement)
- parse_
frontmatter_ content - Parse frontmatter from content string Supports YAML (—) and TOML (+++) delimiters Returns (frontmatter_value, content_without_frontmatter)
- register
- Register all Lua functions as a require-able module
- resolve_
path - Resolve a path relative to project root