Code Monkey home page Code Monkey logo

sailor-md's Introduction

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

sailor-md's People

Contributors

etiene avatar

Stargazers

Andy Shevchenko avatar Ashshaosh avatar Muhammad Najib Bin Ibrahim avatar Valentina Alanis avatar Hallison Batista avatar Roland avatar Nelson avatar

Watchers

James Cloos avatar  avatar

sailor-md's Issues

Luarocks Note on installing

Seems like the tag v0.1 is deatached, I get this "note" when I install sailor-md:

$ luarocks install sailor-md                                                    
Warning: falling back to curl - install luasec to get native HTTPS support      
Installing https://luarocks.org/sailor-md-0.1-1.rockspec...                     
Using https://luarocks.org/sailor-md-0.1-1.rockspec... switching to 'build' mode
Cloning into 'sailor-md'...                                                     
remote: Counting objects: 6, done.                                              
remote: Compressing objects: 100% (6/6), done.                                  
remote: Total 6 (delta 0), reused 5 (delta 0), pack-reused 0                    
Receiving objects: 100% (6/6), done.                                            
Checking connectivity... done.                                                  
Note: checking out '9fc968debc3d026278a6a721404e14e59b30c82a'.                  

You are in 'detached HEAD' state. You can look around, make experimental        
changes and commit them, and you can discard any commits you make in this       
state without impacting any branches by performing another checkout.            

If you want to create a new branch to retain commits you create, you may        
do so (now or later) by using -b with the checkout command again. Example:      

  git checkout -b <new-branch-name>                                             

Updating manifest for /Users/xspager/.lua/52/lib/luarocks/rocks                  
sailor-md 0.1-1 is now built and installed in /Users/xspager/.lua/52 (license: MIT)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.