Skip to content

richardhundt/swarm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

A Micro-Framework in Shine


import Presenter from "swarm.app"

module Hello include Presenter
   @self.route('GET', '/:whom')
   greet(req, args, query)
      hdrs = { }
      hdrs['Content-Type'] = 'text/plain'
      mesg = "Hello %{args.whom or 'World'}!"
      return { 200, hdrs, { mesg } }
   end
end

Hello.run()

About

web micro framework in shine

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published