I haven't tried it, but you should be able to set a variable in say
application_controller.rb and define the theme based off that.  As to
print, I'd probably not make a whole new theme but instead just a
print specific css file and display: none the objects you want to
strip out.  Unless you're doing some sort of additional logic to
paginate or add additional content etc that is.

On Sep 22, 12:22 pm, Steve Van Bruwaene <[email protected]> wrote:
> I've been playing with themes as a way to get a stripped down version of a
> page.  Could be handy for print-version too.
>
> I started playing by simply changing the <set-theme name="clean"/> to
> <set-theme name="email"/> in my application.dryml file.  In my development
> environment, I've had to re-start the server to get it to generate the pages
> right.  Is there a way I can have both themes co-existing in the same
> running environment, so I can generate both the screen-ready one, and a
> printer/email version?
>
> Thanks again!
>
> Steve.
> --
> Steve Van Bruwaene
>
> On Mon, Sep 21, 2009 at 3:01 PM, kevinpfromnm <[email protected]>wrote:
>
>
>
> > You can use script/runner which loads the whole environment - this can
> > be a significant slow down if you launch it each time.  You're
> > probably better off either having a background process running
> > continuously that then sends off your messages or if you can work it
> > with your security needs, a maintenance controller that you can get
> > webpages as a poor man's RPC.  I'm sure there are other ways, but the
> > first one there's things out like workling that can do the background.
>
> > As to the stripped down page, I'm not sure.  I know there are ways to
> > call dryml tags as methods, but I haven't looked into it personally.
>
> > On Sep 21, 12:55 pm, Steve VB <[email protected]> wrote:
> > > I'd like to set up a system within Hobo to email contents of a page
> > > (just contents, but no nav, header, etc.) on request, or scheduled.
>
> > > I'd likely make use of cron to do the scheduled stuff, assuming I can
> > > request these pages from the command line/execute a ruby script from
> > > the command line that did the work.
>
> > > My question is: is there an easy way to fetch a stripped down version
> > > of a page (report/...) that I could send out with ActionMailer?
>
> > > Also, how would I have a script that was executed from the command
> > > line load enough of the hobo environment in order to be able to make
> > > use of it?
>
> > > Thanks!
>
> > > Steve.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Hobo 
Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/hobousers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to