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)
}