priyatam / pie

A minimalist staticsite builder and router
Other
5 stars 0 forks source link

Support Sammy filters in Recipes #35

Open priyatam opened 11 years ago

priyatam commented 11 years ago

Sammy swaps divs inline for every link. This makes it impossible to add a custom js from a recipe that acts on this div, since the js is never called.

 with `context.app.swap(data[i]['html'])`

Fix:

See Sammy.Application-after or any other filters like before, around. Filter will be included by Recipe's index.html as js scripts. Assuming the namespace is the same 'app' in the recipe, this should be automatically invoked by frozen pie's app.

We should change 'app' to 'pie'.