[Nitro] [NP.ORG] Nitro/Og Fora daily diggest

george.moschovitis at gmail.com george.moschovitis at gmail.com
Sat Mar 24 20:05:01 EDT 2007


>From gmosx.myopenid.com 
Date: Sat Mar 24 17:02:11 UTC 2007
Subject: Object to xml library.
Message-ID: http://www.nitroproject.org/fora/posts/view/63

Dear devs,

I am looking for a ruby library that given:

<code>
class User
  attr_accessor :name, :age
end

u = User.new
u.name = "gmosx"
u.age = 32

u.to_xml
</code>

would generate:

<code>

  gmosx
  32

</code>

does something like this exist?

regards,
George.


>From gmosx.myopenid.com 
Date: Sat Mar 24 16:17:38 UTC 2007
Subject: RE: 
In-Reply-To: http://www.nitroproject.org/fora/posts/view/60
Message-ID: http://www.nitroproject.org/fora/posts/view/62

does the template reside in app/template?

-g.

>From rmela.myopenid.com 
Date: Sat Mar 24 13:44:52 UTC 2007
Subject: RE: 
In-Reply-To: http://www.nitroproject.org/fora/posts/view/60
Message-ID: http://www.nitroproject.org/fora/posts/view/61

<blockquote>I'd tried the .htmlx extension as well -- nitro still didn't find the template</blockquote>

>From gmosx.myopenid.com 
Date: Sat Mar 24 10:29:49 UTC 2007
Subject: .htmlx extension
Message-ID: http://www.nitroproject.org/fora/posts/view/60

<blockquote>
If I add a method 'foo' to a controller in Nitro 0.50.0 and a file
"public/foo.html", then the uri "/foo" results in "public/foo.html"
being delivered.

If I replace foo.html with foo.xhtml for foo.htmlx then nothing is served.

How to I get Nitro 0.50.0 to process .xhtml templates?
</blockquote>

The default extension is changed in 0.50. Please rename your files to *.htmlx. xhtml was  quite misleading. Btw, the latest version of Nitro can use templates for all content types, for example you can have .cssx, .atomx, .rssx, .xmlx etc.

I will update the blog example to demonstrate these features shortly.

-g.

PS: please send future questions here.




--
This mail is automatically generated from the http://nitroproject.org/fora
digest robot. It presents the discussions in the fora during the last 24 hours.
Do not reply to this email.


More information about the Nitro-general mailing list