Allow plugins to add vendored files for the text pipeline

This commit is contained in:
Robin Ward
2017-04-18 17:49:56 -04:00
parent e7b0ce1334
commit 564eb8c20f
2 changed files with 12 additions and 1 deletions

View File

@ -94,6 +94,10 @@ module PrettyText
end
end
DiscoursePluginRegistry.vendored_pretty_text.each do |vpt|
ctx.eval(File.read(vpt))
end
ctx
end