Module lua

Module lua 

Source
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;
pub use tracker::SharedTracker;

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