mirror of
https://github.com/discourse/discourse.git
synced 2025-05-21 18:12:32 +08: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