You had lots of questions. I'll answer even though you may not care anymore...
If you have correctly configured Flask, and served that template on the route/url 'test', then nothing would appear as you have not defined a <body>
with any content in the html.
In wheezy.templates, you access local variables/functions with the @my_variable
syntax (ie you prefix it with an @ symbol). If you want to access a variable that was passed to the template as part of the context, you need to require it first, @require(my_variable)
. Your example uses an empty dict as the context, so there would be no variables to access/require.
path_for is part of wheezy.routing, not wheezy.templates. It is used for getting the url of a named route (ie you could do @path_for('test')
, and it would return localhost:1234/test
. Using path_for would only make sense if you are using the complete wheezy.web framework (which uses wheezy.routing and wheezy.templates). Flask would have its own functions for doing this (I'm not sure what they are though, I don't use Flask). You would need to pass these functions into the template via the context, then @require them to use them though (or make some custom extension for wheezy.template).