robin/maivi
a tiny cute lua web framework
git clone https://git.robinwobin.dev/robin/maivi
ae085a5
main
1local md4c =require ( "md4c" ) 2 3maivi . hook ( "read_data" , { pattern ="%.md$" } , function ( ctx ) 4local ok , result =pcall ( md4c . tohtml , ctx . content ) 5if ok then 6ctx : use ( result ) 7end 8end )