Posted By: why the lucky stiff
Date: 2006-10-03 21:38
Summary: Camping the Microframework 1.5
Project: camping

Can you believe Camping is STILL only 4k! Yep, and since the ActiveRecord dependancy is removed, you can plug in any database lib you like. Lots of great fixes: controllers are now ordered, console mode added to bin/camping, better FastCGI support, it goes on forever!

Latest News
TZInfo::Data v1.2014.2 Released
    Philip Ross - 2014-03-25 22:32
TZInfo v0.3.39 Released
    Philip Ross - 2014-03-09 20:23
TZInfo::Data v1.2014.1 Released
    Philip Ross - 2014-03-09 20:00
Automatic Ruby 14.2.0 has been released!
    id 774 - 2014-02-26 06:23
kramdown 1.3.2 released
    Thomas Leitner - 2014-02-16 08:35

 

Forums | Admin

Discussion Forums: camping-the-microframework-1.5

Start New Thread Start New Thread
Message: 89633
BY: Just Wie (just)
DATE: 2009-08-13 08:47
SUBJECT: render(m) method / Question

 

Hi,

the render(m) method is defined as follows:
"Display a view, calling it by its method name m. If a layout method is found in Camping::Views, it will be used to wrap the HTML."

My question: Is there a way or another render method which does *not* use the layout method in Camping::Views?

I would like to render a partial from a controller to inject HTML into the DOM (kind of rjs-style). If the controller's response is wrapped using the layout method, I'll get the <title> and <meta> tags injected as well.


Thread View

Thread Author Date
render(m) method / QuestionJust Wie2009-08-13 08:47

Post a followup to this message