mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 07:53:49 +08:00
Pass a context in when using a HTML builder
This commit is contained in:
@ -134,8 +134,8 @@ class DiscoursePluginRegistry
|
||||
html_builders[name] = block
|
||||
end
|
||||
|
||||
def self.build_html(name)
|
||||
html_builders[name]&.call
|
||||
def self.build_html(name, ctx)
|
||||
html_builders[name]&.call(ctx)
|
||||
end
|
||||
|
||||
def javascripts
|
||||
|
Reference in New Issue
Block a user