Anonymous avatar Anonymous committed d7270fd Merge

Merge branch 'release/0.1' into develop

Comments (0)

Files changed (1)


 --   to - let's say create indexes in Your DB or screen scrape some 
 --   useful data from some service and save it in DB.
---   Every task lives in MonadSnap defined by some Snaplet.
---   That means, that if your web app defines some task, it'll be
---   executed in MonadSnap as if it were a Handler for some route.
+--   Every task is in fact just a handler for route. Those routes 
+--   are hashes for routes so that 'somens:other:cool:task' becomes
+--   a valid route in app.
+--   To create such task in one of Your snaplets (maybe in your app
+--   snaplet) - define route for it using handy 'task' function
+--   that this module reexports.
+--   Running tasks is fairly simple: 
+--   yourapp T snaplet:super:cool arg1=v1 arg2=v2 [-p 1000]
+--   This means that your task command always follows 'T'
+--   If you're running Your app at default port You can specify
+--   different port at the end by using standard -p argument.
 module Snap.Snaplet.Tasks( tasksInit,
                            module Snap.Snaplet.Tasks.Utils ) where
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.