[Catalyst] Return a TT view

jeff robinson jeffreyianrobinson at gmail.com
Sat May 21 23:03:11 GMT 2011


Toby
That's very handy, thanks for the link - J

On Sat, May 21, 2011 at 1:56 PM, Tobias Kremer <tobias.kremer at gmail.com> wrote:
> You can use a variable (like no_wrap) to control your wrapping. Have a look at this thread:
>
> http://www.gossamer-threads.com/lists/catalyst/users/9385?do=post_view_threaded#9385
>
> Hope this helps!
> --Toby
>
>
> On 21.05.2011, at 18:05, jeff robinson <jeffreyianrobinson at gmail.com> wrote:
>
>> Alejandro
>> I'm mapping a "tradional" website (where page 2 replaces page 1 etc)
>> wriitten obviously for Catalyst to one that uses JQuery, ie all of the
>> TT for the pages is essentaily in place. The operational model is now,
>> however, very different in that a single "master" web page of JQuery
>> tabs is loaded when a user enters the site and as a user clicks on the
>> various tabs all I need is a file GET of the target pages, ie I'm not
>> looking for the page to be replaced as used to be the case. So I need
>> to adapt the view to remove some of the prior processing..
>> Thanks for the input -- J
>>
>> On Sat, May 21, 2011 at 2:26 AM, Alejandro Imass
>> <alejandro.imass at gmail.com> wrote:
>>> On Fri, May 20, 2011 at 3:21 PM, jeff robinson
>>> <jeffreyianrobinson at gmail.com> wrote:
>>>> Hi,
>>>> I need to be able to process a view through a TT template but instead
>>>> of subjecting it to the usual chain of processing (pre-process,
>>>> wrapper etc) I just want to return it as text to the calling function.
>>>> I am basically using TT to process a file GET and will return the text
>>>> in a $c->response->body().
>>>> Thanks - J
>>>
>>>> From what you are describing you are probably using TTSite which has a
>>> pre-configured layout for the TT View
>>>
>>> take a look in:
>>>
>>> root/lib/site/wrapper
>>>
>>> And look at the conditionals there, in fact it's already
>>> pre-configured so if the extension is txt it will not process the
>>> headers, etc.
>>>
>>> Hope that helps.
>>>
>>> --
>>> Alejandro Imass
>>>
>>>
>>>
>>>>
>>>> _______________________________________________
>>>> List: Catalyst at lists.scsys.co.uk
>>>> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
>>>> Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
>>>> Dev site: http://dev.catalyst.perl.org/
>>>>
>>>
>>> _______________________________________________
>>> List: Catalyst at lists.scsys.co.uk
>>> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
>>> Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
>>> Dev site: http://dev.catalyst.perl.org/
>>>
>>
>> _______________________________________________
>> List: Catalyst at lists.scsys.co.uk
>> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
>> Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
>> Dev site: http://dev.catalyst.perl.org/
>
> _______________________________________________
> List: Catalyst at lists.scsys.co.uk
> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
> Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
> Dev site: http://dev.catalyst.perl.org/
>



More information about the Catalyst mailing list