This repository has been archived by the owner on Jan 30, 2023. It is now read-only.
forked from nrk/mercury
catwell/mercury
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lua53
Could not load branches
Nothing to show
Could not load tags
Nothing to show
{{ refName }}
default
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code
-
Clone
Use Git or checkout with SVN using the web URL.
Work fast with our official CLI. Learn more.
- Open with GitHub Desktop
- Download ZIP
Sign In Required
Please sign in to use Codespaces.
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching Xcode
If nothing happens, download Xcode and try again.
Launching Visual Studio Code
Your codespace will open once ready.
There was a problem preparing your codespace, please try again.
This branch is 6 commits ahead of nrk:master.
Latest commit
Git stats
Files
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
Mercury
... because Sinatra is not the only one performing on the stage.
================================================================================
-- Introduction ----------------------------------------------------------------
Mercury aims to be a Sinatra-like web framework (or DSL, if you like) for
creating web applications in Lua, quickly and painlessly.
local mercury = require 'mercury'
mercury.get('/', function()
return "Hello world!"
end)
return mercury.application()
Mercury is currently in its very early stages of development, it started like
an hack and right now it still is nothing more than that. Having said that, I
thought that things might get interesting and so I decided to release the
actual source code and start working on it to get it properly done.
-- About the name --------------------------------------------------------------
"Mercury" because:
* like Sinatra, he is a legend of the music history. That is, Freddie Mercury.
* most of the cool web projects coded in Lua have astronomical references:
- the Kepler Project (web development platform)
- Orbit (MVC framework)
- Cosmo (templating system)
- Sputnik (wiki engine)
* it is the smallest planet in our solar system and the nearest to the Sun...
* ... and Mercury is the smallest web framework and the nearest to the "core".
-- How to execute the examples -------------------------------------------------
If you have installed Mercury using LuaRocks you should have the 'mercury'
executable file available in your PATH, you just need to enter in the samples
directory and launch one of the applications like this:
mercury greetings
If, instead, you have simply cloned the repository, you can launch one of the
example applications from the root directory of the project like this:
./bin/mercury samples.greetings
-- Contributors ----------------------------------------------------------------
* Mauricio Henrique Bomfim (https://github.com/mauriciobomfim)
Support for Lua Pages as a templating engine for Mercury.
* Norman Clarke (https://github.com/norman)
Rockspec file for LuaRocks and various fixes.
* Francois Perrad (https://github.com/fperrad)
Support for CodeGen as a templating engine for Mercury.
-- Notes -----------------------------------------------------------------------
Want to help or contribute? Drop me a mail to suppakilla{at}gmail.com
About
See branch lua53 for Lua 5.3 support.
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published
Languages
- Lua 100.0%