Skip to main content

text_parser

Function text_parser 

Source
pub fn text_parser() -> impl Fn(&Lua, &str) -> Result<Value> + Send + Sync
Expand description

Text -> Lua String parser.

Returns the file content as-is as a Lua String. Use for .txt, .sql, .html, .css, etc.