codeguy/Slim-Views — pull request #4 by lexruee (2013-08-30 13:38:45+00:00)
Title: Add helper function appendSite in class TwigExtension.

Hi there!
I wrote a helper function called appendSiteUrl for the TwigExtension class.
The function is used to append parameters to the site url.
I thought this function might be useful.

Example usage:

{{ appendSiteUrl('/posts', 10)}}	=> .. /posts/10
{{ appendSiteUrl('/posts/', 10)}}	=> .. /posts/10

Cheers,
Alexander