A Crystal web framework that makes building applications fast, simple, and enjoyable. Get started with quick prototyping, less bugs, and blazing fast performance.
This PR fixes issue #1227 . This adds a check to see if LAYOUT is false or "false" and disables the layout for all of the render calls in the controller.
Alternate Designs
Passing layout=false to all render calls in the controller
Benefits
Reduces the code needed to disable the layout.
Possible Drawbacks
It's not clear that LAYOUT can be set to false. Its a bit awkward to have a (String | Boolean) union type for this field.
Description of the Change
This PR fixes issue #1227 . This adds a check to see if LAYOUT is false or "false" and disables the layout for all of the render calls in the controller.
Alternate Designs
Passing
layout=false
to all render calls in the controllerBenefits
Reduces the code needed to disable the layout.
Possible Drawbacks
It's not clear that LAYOUT can be set to false. Its a bit awkward to have a (String | Boolean) union type for this field.