Skip to content

akopytov/lapis

 
 

Repository files navigation

Lapis

A web framework for Lua/MoonScript.

lapis = require "lapis.init"

lapis.serve class extends lapis.Application
  "/": =>
    profile_url = @url_for "user_profile", name: "leafo"
    @html ->
      h2 "Welcome!"
      text "Go to my "
      a href: profile_url, "profile"[user_profile: "/:name"]: =>
    @html ->
      div class: "profile", ->
        text "Welcome to the profile of ", @params.name

About

A web framework for Lua and OpenResty written in MoonScript

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • MoonScript 53.6%
  • Lua 45.7%
  • Other 0.7%