Is there a way in lift to pass parameters to snippets?
I am trying to write a pluraize filter for my page that will display the word "user" or "users" depending on how many there are:
1 user
2 users
The way it works in Django is called filters and they are written as follows:
You have {{ num_messages }} message{{ num_messages|pluralize }}.
So here you can see pluralize function takes an integer num_messages and outputs and appropriate string - either empty "" or "s".
EDIT: Note that the num_messages in this case is an actual context variable, passed down to the template from the view.