mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Support {{unless}} in virtual dom templates
This commit is contained in:
@@ -5,6 +5,9 @@ template = <<~HBS
|
||||
{{#if state.category}}
|
||||
{{attach widget="category-display" attrs=(hash category=state.category someNumber=123 someString="wat")}}
|
||||
{{/if}}
|
||||
{{#unless state.hello}}
|
||||
XYZ
|
||||
{{/unless}}
|
||||
HBS
|
||||
|
||||
ctx = MiniRacer::Context.new(timeout: 15000)
|
||||
|
||||
Reference in New Issue
Block a user