Questions tagged [revel]

A high-productivity web framework for the Go language.

Features

Hot Code Reload

Edit, save, and refresh. Revel compiles your code and templates for you, so you don't miss a beat. Code doesn't compile? It gives you a helpful description. Run-time code panic? Revel has you covered.

Comprehensive

Revel provides routing, parameter parsing, validation, session/flash, templating, caching, job running, a testing framework, and even internationalization.

High Performance

Revel builds on top of the Go HTTP server, which was recently benchmarked to serve three to ten times as many requests as Rails across a variety of loads.

Framework Design

Synchronous

The Go HTTP server runs each request in its own goroutine. Write simple callback-free code without guilt.

Stateless

Revel provides primitives that keep the web tier stateless for predictable scaling. For example, session data is stored in the user cookie, and the cache is backed by a memcached cluster.

Modular

Revel is built around composable middleware called filters, which implement nearly all request-processing functionality. Developers have the freedom to replace the default filters with custom implementations (e.g. a custom router).

Source: project home page

206 questions
1
vote
0 answers

How to reverse for loop in golang-revel

i'm aware that you can do for loop in revel like this {{range $index, $element := .foo }} {{end}} but is there any way to reverse a for loop so that it can iterating from behind in revel-template, i'm looking the equivalent of this code in…
Michael Halim
  • 262
  • 2
  • 20
1
vote
1 answer

How to change dynamic variable in Revel Template

In my revel project, i have a select option that need to get selected after clicking submit button. If i do it like this it works because .OptionType is a string so i need to compare it with string