mirror of
https://github.com/discourse/discourse.git
synced 2025-05-28 13:51:18 +08:00
Instead of .js.handlebars
use .hbs
for handlebars templates
This commit is contained in:
@ -87,7 +87,7 @@ module Onebox
|
||||
end
|
||||
|
||||
return nil unless @template
|
||||
Mustache.render(File.read("#{Rails.root}/lib/onebox/templates/discourse_#{@template}_onebox.handlebars"), args)
|
||||
Mustache.render(File.read("#{Rails.root}/lib/onebox/templates/discourse_#{@template}_onebox.hbs"), args)
|
||||
rescue ActionController::RoutingError
|
||||
nil
|
||||
end
|
||||
|
Reference in New Issue
Block a user