Tag Archives: Simple_Bridge

How to add Nitrogen and Cowboy as dependency libs to your erlang application

I received several emails asking to give the steps how to add Nitrogen and Cowboy as dependency libs to an application. The similar questions came up few times in the past on the Nitrogen mailing list. I posted a while … Continue reading

Posted in Cowboy, Erlang, Nitrogen, Simple_Bridge | Tagged , , , | Leave a comment

Cowboy 0.8 experemental bindings for Nitrogen

I have been playing with a new Cowboy 0.8 release and built Simple_Bridge bindings for Nitrogen. Simple_Bridge fork for Cowboy 0.8 can be found here. I converted Nitrogen_Elements_Examples to use Cowboy 0.8 so you can use it as a starting … Continue reading

Posted in Cowboy, Erlang, Nitrogen, Nitrogen_Elements, Simple_Bridge | Tagged , , , | 2 Comments

How Nitrogen processes requests – part 3

Last time we traced the steps that Nitrogen takes to initialize the Context and reached wf_core:run_catched function which builds the Response. Firstly, this function updates the Context with the page State which comes from the browser in the http Request … Continue reading

Posted in custom Nitrogen elements, Erlang, Nitrogen, Nitrogen_Elements | Tagged , , , , , | Leave a comment

How Nitrogen processes requests – part 2

Context In the last post we discussed how Nitrogen inits a new Context for each request and stores it in the process dictionary. Conceptually, Nitrogen uses Context to pass the page state from the server to browser and then, on … Continue reading

Posted in Cowboy, Erlang, Nitrogen, Simple_Bridge | Tagged , , , , | 1 Comment

How Nitrogen processes requests – part 1

If you have used Nitrogen for a while, you might start wandering how Nitrogen actually processes your requests and what is happening under the hood. Unfortunately the documentation on this part is particularly patchy. There is a very good introductory … Continue reading

Posted in Cowboy, Erlang, Nitrogen, Simple_Bridge | Tagged , , , , | Leave a comment

Use of extra_param in Nitrogen #event{}

I already briefly touched on how #event{} Nitrogen action allows to bind to jquery events. But #event{} has a pretty interesting feature extra_param which is worth extra post as it could be very useful. You can specify postback option for … Continue reading

Posted in custom Nitrogen elements, Erlang, Nitrogen | Tagged , , , | Leave a comment