Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Bricolage: users

Bricolage without its template system

 

 

Bricolage users RSS feed   Index | Next | Previous | View Threaded


jose-p-neta at telecom

Dec 26, 2012, 9:50 AM

Post #1 of 3 (372 views)
Permalink
Bricolage without its template system

Hi!

Let's say I don't want to use bricolage for template rendering but just for content management.

I need a way to post/put to another server like a dancer app when a story is published.

Does anyone here has something to say about it?

Cheers,

JPN


david at justatheory

Dec 26, 2012, 11:48 AM

Post #2 of 3 (344 views)
Permalink
Re: Bricolage without its template system [In reply to]

On Dec 26, 2012, at 9:50 AM, Jose Pinheiro Neta <jose-p-neta [at] telecom> wrote:

> Let's say I don't want to use bricolage for template rendering but just for content management.
>
> I need a way to post/put to another server like a dancer app when a story is published.
>
> Does anyone here has something to say about it?

I would implement the templates as usual, but at the end of the root category template, I would take the data and post it. With Mason templates, that would be something like this:

<%filter>;
HTTP::Tiny->new->request(POST => $url, { content => $_ });
$_ = undef;
</%filter>

Best,

David


ps at phillipadsmith

Jan 2, 2013, 8:26 AM

Post #3 of 3 (336 views)
Permalink
Re: Bricolage without its template system [In reply to]

On 2012-12-26, at 1:48 PM, David E. Wheeler <david [at] justatheory> wrote:

> On Dec 26, 2012, at 9:50 AM, Jose Pinheiro Neta <jose-p-neta [at] telecom> wrote:
>
>> Let's say I don't want to use bricolage for template rendering but just for content management.
>>
>> I need a way to post/put to another server like a dancer app when a story is published.
>>
>> Does anyone here has something to say about it?
>
> I would implement the templates as usual, but at the end of the root category template, I would take the data and post it. With Mason templates, that would be something like this:

This is exactly what I'm doing to power an API for a site. At the end of the usual template, there's a post to ElasticSearch. Then there's a Mojolicious Lite app that provides the API's interface. Other apps can interact with that via GET requests that return JSON.

Phillip.

Bricolage users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.