robfig/revel — pull request #193 by pix64 (2013-06-25 02:05:52+00:00)
Title: Make slug function visible outside of Revel package

Allows calling of slug function from controllers. Useful for redirecting with arguments (in conjunction with ReverseUrl)

I think it would be useful to be able to call the slug function outside of templates, for example to redirect.

url, err := revel.ReverseUrl("Post.View", id, revel.Slug(post.Title))
if err != nil {
return c.RenderError(err)
}