Considering ChicagoBoss for a website rewrite : several questions

29 views
Skip to first unread message

Hoggins

unread,
Feb 12, 2012, 6:55:44 AM2/12/12
to ChicagoBoss
Hello,

I'm currently considering ChicagoBoss for a project rewrite, currently
written in Python w/ Django. However, there is several questions
remaining for which I did not find any answer in the docs:

- Is it possible to create middleware, or similar functionality, that
would allow the request to be modified before it hits the controllers,
or the response to be altered after?

- Is it possible to create custom template tags, just like with
Django?

- Is it possible to stream a response to the browser? The pages are
divided in different independent blocks, and the idea would be to
render each block separately, and send them to the browser as they are
ready. Just like Facebook does with BigPipe (http://www.facebook.com/
note.php?note_id=389414033919)

Thanks for your help.

--
Pierre

Evan Miller

unread,
Feb 12, 2012, 4:56:55 PM2/12/12
to chica...@googlegroups.com
Hi Pierre,

On Sun, Feb 12, 2012 at 5:55 AM, Hoggins <pierre...@gmail.com> wrote:
> Hello,
>
> I'm currently considering ChicagoBoss for a project rewrite, currently
> written in Python w/ Django. However, there is several questions
> remaining for which I did not find any answer in the docs:
>
> - Is it possible to create middleware, or similar functionality, that
> would allow the request to be modified before it hits the controllers,
> or the response to be altered after?
>

See before and after filters:

http://chicagoboss.org/api-controller.html#auth

http://chicagoboss.org/api-controller.html#filter

> - Is it possible to create custom template tags, just like with
> Django?
>

Yes, you can put custom tags into view/lib, see
http://chicagoboss.org/api-view.html

> - Is it possible to stream a response to the browser? The pages are
> divided in different independent blocks, and the idea would be to
> render each block separately, and send them to the browser as they are
> ready. Just like Facebook does with BigPipe (http://www.facebook.com/
> note.php?note_id=389414033919)

This is not presently possible, but long-term I'm interested in
implementing streaming responses. You might be able to achieve a
similar effect with JavaScript pulling needed data via JSON APIs.

Best

Evan

>
> Thanks for your help.
>
> --
> Pierre

--
Evan Miller
http://www.evanmiller.org/

Reply all
Reply to author
Forward
0 new messages