Extension to Sailor that allows to read a markdown file and include on a view
Lua
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
LICENSE
README.md
md.lua
sailor-md-0.1-1.rockspec

README.md

sailor-md

Extension to Sailor that allows to read a markdown file and include on a view.

Installation

luarocks install sailor-md

Usage example in a view of a Sailor application

<?lua
    local md = require "sailor.md"
    md.include("views/docs/my_file.md") -- or page:include_md("views/docs/my_file.md")
?>

Licence

MIT