We're updating the issue view to help you get more done. 

Implicitly pass args from renderLayout() into the rendered views

Description

I encountered a problem when using the coldbox.system.web.Renderer to render a layout.

1 2 3 4 5 renderer.renderLayout( view = '_templates/email/forward_trade_notification', layout = 'email', args = { data : 'abc123' } )

The expected behaviour (for me at least) was for the arguments to be passed into the rendered view. At the moment you have to explicity pass the arguments into the view using #renderView(args=args)#.

Alternatively, another suggestion was have a viewArgs parameter in the renderLayout method which would explicitly pass the args into the view.

Regards
Ryan

Status

Assignee

Luis Majano

Reporter

Ryan Albrecht

Labels

Components

Fix versions

Affects versions

5.1.4

Priority

Minor