Skip to content

Hello world example

webdevwilson edited this page Dec 28, 2010 · 8 revisions

crack open your favorite brew

put this in a file 'myfile.groovy'

  import graffiti.*

  @Grab('com.goodercode:graffiti:1.0-SNAPSHOT')
  @Get('/helloworld')
  def hello() {
    'Hello World'
  }

  Graffiti.serve this

run 'groovy myfile.groovy'

have a sip

Clone this wiki locally