Google Mail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Is anybody using partials with locals?
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
  5 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
 
lyqwyd  
View profile   Translate to Translated (View Original)
 More options 4 Sep 2008, 04:57
From: lyqwyd <agbod...@gmail.com>
Date: Wed, 3 Sep 2008 20:57:39 -0700 (PDT)
Local: Thurs 4 Sep 2008 04:57
Subject: Is anybody using partials with locals?
I tried using partials with 0.9.4 with locals and it dies. Looks like
0.9.4 is not compatible with haml 2+. I tried using staticmatic 2 from
git and the preview won't even load, it says there's an error on:

$ rake preview --
trace
(in mysite)
** Invoke preview (first_time)
** Execute preview
rake aborted!
./staticmatic/lib/tasks/../staticmatic/previewer.rb:31: syntax error,
unexpected '\n'
./staticmatic/lib/tasks/staticmatic.rb:8
/Library/Ruby/Gems/1.8/gems/rake-0.8.1/lib/rake.rb:546:in `call'
/Library/Ruby/Gems/1.8/gems/rake-0.8.1/lib/rake.rb:546:in `execute'
/Library/Ruby/Gems/1.8/gems/rake-0.8.1/lib/rake.rb:541:in `each'
/Library/Ruby/Gems/1.8/gems/rake-0.8.1/lib/rake.rb:541:in `execute'
/Library/Ruby/Gems/1.8/gems/rake-0.8.1/lib/rake.rb:508:in
`invoke_with_call_chain'
/Library/Ruby/Gems/1.8/gems/rake-0.8.1/lib/rake.rb:501:in
`synchronize'
/Library/Ruby/Gems/1.8/gems/rake-0.8.1/lib/rake.rb:501:in
`invoke_with_call_chain'
/Library/Ruby/Gems/1.8/gems/rake-0.8.1/lib/rake.rb:494:in `invoke'
/Library/Ruby/Gems/1.8/gems/rake-0.8.1/lib/rake.rb:1931:in
`invoke_task'
/Library/Ruby/Gems/1.8/gems/rake-0.8.1/lib/rake.rb:1909:in `top_level'
/Library/Ruby/Gems/1.8/gems/rake-0.8.1/lib/rake.rb:1909:in `each'
/Library/Ruby/Gems/1.8/gems/rake-0.8.1/lib/rake.rb:1909:in `top_level'
/Library/Ruby/Gems/1.8/gems/rake-0.8.1/lib/rake.rb:1948:in
`standard_exception_handling'
/Library/Ruby/Gems/1.8/gems/rake-0.8.1/lib/rake.rb:1903:in `top_level'
/Library/Ruby/Gems/1.8/gems/rake-0.8.1/lib/rake.rb:1881:in `run'
/Library/Ruby/Gems/1.8/gems/rake-0.8.1/lib/rake.rb:1948:in
`standard_exception_handling'
/Library/Ruby/Gems/1.8/gems/rake-0.8.1/lib/rake.rb:1878:in `run'
/Library/Ruby/Gems/1.8/gems/rake-0.8.1/bin/rake:31
/usr/bin/rake:19:in `load'
/usr/bin/rake:19
staticmatic/lib/staticmatic/previewer.rb line

which looks to be the ternary operator on several lines:

    output = (file_ext == "css") ?
      @staticmatic.render(path_info)
      @staticmatic.render_with_layout(file_name)

so I tried changing it to:

    output = (file_ext == "css") ? @staticmatic.render(path_info) :
@staticmatic.render_with_layout(file_name)

which then allowed rake preview to work... with the odd message (note
that there is no port):

    ** Invoke preview (first_time)
    ** Execute preview
    Running Preview of . on port

but when I try to access a page with a partial I get the error (on the
actual web page, after the preceding haml content is properly
rendered):

undefined method `controller_path' for StaticMatic::Base:Class

---
    - |-
      On line #1 of mysite/src/pages/test.haml

          1: = render :partial => "sidebar"

          /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_view/
partial_template.rb:60:in `partial_pieces'
          /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_view/
partial_template.rb:52:in `extract_partial_name_and_path'
          /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_view/
partial_template.rb:7:in `initialize'
          /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_view/
partials.rb:110:in `new'
          /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_view/
partials.rb:110:in `render_partial'
          /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_view/
base.rb:273:in `render_without_haml'
          /Library/Ruby/Gems/1.8/gems/haml-2.0.2/lib/haml/helpers/
action_view_mods.rb:5:in `render'
          /Library/Ruby/Gems/1.8/gems/haml-2.0.2/lib/haml/helpers.rb:
57:in `non_haml'
          /Library/Ruby/Gems/1.8/gems/haml-2.0.2/lib/haml/helpers/
action_view_mods.rb:5:in `render'
          src/pages/test.haml:1:in
`_run_plugin_47Users47afam47workspace47static47nursing47trunk47src47pages47 test46haml'
          /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_view/
base.rb:338:in `send'
          /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_view/
base.rb:338:in `execute'
          /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_view/
template_handlers/compilable.rb:29:in `send'
          /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_view/
template_handlers/compilable.rb:29:in `render'
          /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_view/
template.rb:35:in `render'
          /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_view/
template.rb:22:in `render_template'
          /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_view/
base.rb:245:in `render_file'
          staticmatic/lib/staticmatic/base.rb:58:in `render'
          staticmatic/lib/staticmatic/base.rb:67:in
`render_with_layout'
          staticmatic/lib/staticmatic/previewer.rb:30:in `process'
          /Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel/
http_response.rb:65:in `start'
          staticmatic/lib/staticmatic/previewer.rb:25:in `process'
          /Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:
159:in `process_client'
          /Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:
158:in `each'
          /Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:
158:in `process_client'
          /Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:
285:in `run'
          /Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:
285:in `initialize'
          /Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:
285:in `new'
          /Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:
285:in `run'
          /Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:
268:in `initialize'
          /Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:
268:in `new'
          /Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:
268:in `run'
          /Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel/
configurator.rb:282:in `run'
          /Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel/
configurator.rb:281:in `each'
          /Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel/
configurator.rb:281:in `run'
          staticmatic/lib/staticmatic/previewer.rb:57:in `cloaker_'
          /Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel/
configurator.rb:50:in `call'
          /Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel/
configurator.rb:50:in `initialize'
          staticmatic/lib/staticmatic/previewer.rb:51:in `new'
          staticmatic/lib/staticmatic/previewer.rb:51:in `start'
          staticmatic/lib/tasks/staticmatic.rb:8
          /Library/Ruby/Gems/1.8/gems/rake-0.8.1/lib/rake.rb:546:in
`call'
          /Library/Ruby/Gems/1.8/gems/rake-0.8.1/lib/rake.rb:546:in
`execute'
          /Library/Ruby/Gems/1.8/gems/rake-0.8.1/lib/rake.rb:541:in
`each'
          /Library/Ruby/Gems/1.8/gems/rake-0.8.1/lib/rake.rb:541:in
`execute'
          /Library/Ruby/Gems/1.8/gems/rake-0.8.1/lib/rake.rb:508:in
`invoke_with_call_chain'
          /Library/Ruby/Gems/1.8/gems/rake-0.8.1/lib/rake.rb:501:in
`synchronize'
          /Library/Ruby/Gems/1.8/gems/rake-0.8.1/lib/rake.rb:501:in
`invoke_with_call_chain'
          /Library/Ruby/Gems/1.8/gems/rake-0.8.1/lib/rake.rb:494:in
`invoke'
          /Library/Ruby/Gems/1.8/gems/rake-0.8.1/lib/rake.rb:1931:in
`invoke_task'
          /Library/Ruby/Gems/1.8/gems/rake-0.8.1/lib/rake.rb:1909:in
`top_level'
          /Library/Ruby/Gems/1.8/gems/rake-0.8.1/lib/rake.rb:1909:in
`each'
          /Library/Ruby/Gems/1.8/gems/rake-0.8.1/lib/rake.rb:1909:in
`top_level'
          /Library/Ruby/Gems/1.8/gems/rake-0.8.1/lib/rake.rb:1948:in
`standard_exception_handling'
          /Library/Ruby/Gems/1.8/gems/rake-0.8.1/lib/rake.rb:1903:in
`top_level'
          /Library/Ruby/Gems/1.8/gems/rake-0.8.1/lib/rake.rb:1881:in
`run'
          /Library/Ruby/Gems/1.8/gems/rake-0.8.1/lib/rake.rb:1948:in
`standard_exception_handling'
          /Library/Ruby/Gems/1.8/gems/rake-0.8.1/lib/rake.rb:1878:in
`run'
          /Library/Ruby/Gems/1.8/gems/rake-0.8.1/bin/rake:31
          /usr/bin/rake:19:in `load'
          /usr/bin/rake:19

Any suggestions?


    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.
Ryan McGeary  
View profile   Translate to Translated (View Original)
 More options 4 Sep 2008, 12:41
From: "Ryan McGeary" <ryan.mcge...@gmail.com>
Date: Thu, 4 Sep 2008 07:41:26 -0400
Local: Thurs 4 Sep 2008 12:41
Subject: Re: Is anybody using partials with locals?

I haven't touched staticmatic stuff in a little while but the last time I
checked, the only stable version combination was staticmatic 0.9.3 and haml
1.8.2.
See this thread:
http://groups.google.com/group/staticmatic/browse_thread/thread/62840...

-Ryan


    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.
lyqwyd  
View profile   Translate to Translated (View Original)
 More options 4 Sep 2008, 20:11
From: lyqwyd <agbod...@gmail.com>
Date: Thu, 4 Sep 2008 12:11:17 -0700 (PDT)
Local: Thurs 4 Sep 2008 20:11
Subject: Re: Is anybody using partials with locals?
I did see that thread, but I was hoping progress had been made since
then... Where would I set staticmatic to use haml 1.8.3? I cannot
uninstall haml 2.0.2 as I have other rails & merb projects using that.

Just curious, is staticmatic still an ongoing project? It looks like
there hasn't been a release in a while and the staticmatic 2 page on
github shows last commit was around mid July.

Thanks!

On 4 Sep, 04:41, "Ryan McGeary" <ryan.mcge...@gmail.com> wrote:


    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.
Stephen Bartholomew  
View profile   Translate to Translated (View Original)
 More options 4 Sep 2008, 23:55
From: Stephen Bartholomew <st...@curve21.com>
Date: Thu, 4 Sep 2008 15:55:29 -0700 (PDT)
Local: Thurs 4 Sep 2008 23:55
Subject: Re: Is anybody using partials with locals?
Hey,

Staticmatic is most definatly still in development - although progress
has been a little slow from my side due to work/family commitments.
However, I am gearing up for a push to get staticmatic 2 ready for
release so expect that very shortly.

Regarding your current problems, I'll take a look and try and get any
required fix out in the next few days.

Cheers,

Steve


    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.
lyqwyd  
View profile   Translate to Translated (View Original)
 More options 6 Sep 2008, 19:55
From: lyqwyd <agbod...@gmail.com>
Date: Sat, 6 Sep 2008 11:55:37 -0700 (PDT)
Local: Sat 6 Sep 2008 19:55
Subject: Re: Is anybody using partials with locals?
I certainly understand not having enough time to do everything in your
life!

I find staiticmatic to be a well thought out project and I think
you've done a great job.

Thanks

On 4 Sep, 15:55, Stephen Bartholomew <st...@curve21.com> wrote:


    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