Open wgordon17 opened 1 year ago
I have a whole bunch of templates that rely on the "empty resolves to false" behavior. Specifically setting some HTML class attribute defaults
class="{{height|default:'h-5'}} {{width|default:'w-5'}} {{color|default:'text-blue-500'}}"
Just wondering if you have any suggestions on
I like the other protections from gotchas that fastdev provides, just this one little nuance that has me disabling it for now 😞
I suggest always send those variables to the template. Presumably as None.
I have a whole bunch of templates that rely on the "empty resolves to false" behavior. Specifically setting some HTML class attribute defaults
Just wondering if you have any suggestions on
I like the other protections from gotchas that fastdev provides, just this one little nuance that has me disabling it for now 😞