DEV: hbs extensions are misleading in this case (#9170)
This would also prevent any linting tool to attempt to lint this incorrectly.
This commit is contained in:
parent
d1474e94a1
commit
fd4ce6ab8f
|
@ -261,7 +261,7 @@ module Oneboxer
|
||||||
quote: PrettyText.unescape_emoji(post.excerpt(SiteSetting.post_onebox_maxlength)),
|
quote: PrettyText.unescape_emoji(post.excerpt(SiteSetting.post_onebox_maxlength)),
|
||||||
}
|
}
|
||||||
|
|
||||||
template = File.read("#{Rails.root}/lib/onebox/templates/discourse_topic_onebox.hbs")
|
template = File.read("#{Rails.root}/lib/onebox/templates/discourse_topic_onebox.mustache")
|
||||||
Mustache.render(template, args)
|
Mustache.render(template, args)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -287,7 +287,7 @@ module Oneboxer
|
||||||
original_url: url
|
original_url: url
|
||||||
}
|
}
|
||||||
|
|
||||||
template = File.read("#{Rails.root}/lib/onebox/templates/discourse_user_onebox.hbs")
|
template = File.read("#{Rails.root}/lib/onebox/templates/discourse_user_onebox.mustache")
|
||||||
Mustache.render(template, args)
|
Mustache.render(template, args)
|
||||||
else
|
else
|
||||||
nil
|
nil
|
||||||
|
|
Loading…
Reference in New Issue