Google Mail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
How to determine the view mode?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Follow-up To:
Add Cc | Add Follow-up to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers that you hear
 
picardo  
View profile   Translate to Translated (View Original)
 More options 27 Oct, 23:38
From: picardo <spockspla...@gmail.com>
Date: Tue, 27 Oct 2009 16:38:37 -0700 (PDT)
Local: Tues 27 Oct 2009 23:38
Subject: How to determine the view mode?
Hey guys,

I'm hacking the core to permit staticmatic to work with different css
and javascript folders and with shtml extension. I just need some
help. How can I programmatically find out which command has been run
-- preview or build?

thanks,
Volkan


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
picardo  
View profile   Translate to Translated (View Original)
 More options 28 Oct, 00:13
From: picardo <spockspla...@gmail.com>
Date: Tue, 27 Oct 2009 17:13:24 -0700 (PDT)
Local: Wed 28 Oct 2009 00:13
Subject: Re: How to determine the view mode?
Specifically I'm trying to determine that from this method

 def generate_html_from_template_source(source, options = {})
    ....
    html.render(@scope, locals) {
                yield
        }
  end

Volkan

On Oct 27, 7:38 pm, picardo <spockspla...@gmail.com> wrote:


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Adam Stacoviak  
View profile   Translate to Translated (View Original)
 More options 30 Oct, 15:55
From: Adam Stacoviak <a...@gethandcrafted.com>
Date: Fri, 30 Oct 2009 08:55:02 -0700 (PDT)
Local: Fri 30 Oct 2009 15:55
Subject: Re: How to determine the view mode?
Sucks no one has piped up and helped out. I too would like to relocate
the image and javascripts folders. I tend to want to clear out the
site directory to create a new clean build, but having the images and
js in there makes that a more manual process.

On 27 Oct, 19:13, picardo <spockspla...@gmail.com> wrote:


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
picardo  
View profile   Translate to Translated (View Original)
 More options 1 Nov, 03:26
From: picardo <spockspla...@gmail.com>
Date: Sat, 31 Oct 2009 20:26:31 -0700 (PDT)
Local: Sun 1 Nov 2009 03:26
Subject: Re: How to determine the view mode?
Hey Adam,

I managed to hack the core sufficiently to make it work. Most of the
action is happening in build.rb, in the lib\staticmatic\mixins
directory. There was also some hacking in render.rb in the same
directory. In the directory above that, there is a file called
helpers.rb, and that is where the stylesheet and javascript helpers
have their directories hardcoded. So I had to change all those things
to make it work with my custom js and css directories. Too bad that I
couldn't create a patch to share with everyone because the program's
execution flow confused me, and my objects kept getting unset before I
had a chance to use them. But if you have any questions, you can ask
me.

Volkan

On Oct 30, 11:55 am, Adam Stacoviak <a...@gethandcrafted.com> wrote:


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google