diff --git a/app/liquid_tags/replit_tag.rb b/app/liquid_tags/replit_tag.rb index 1c9297393..ee4a7231d 100644 --- a/app/liquid_tags/replit_tag.rb +++ b/app/liquid_tags/replit_tag.rb @@ -1,13 +1,17 @@ class ReplitTag < LiquidTagBase + PARTIAL = "liquids/replit".freeze def initialize(tag_name, id, tokens) super @id = parse_id(id) end def render(_context) - '
- -
' + ActionController::Base.new.render_to_string( + partial: PARTIAL, + locals: { + id: @id + }, + ) end private diff --git a/app/views/liquids/_replit.html.erb b/app/views/liquids/_replit.html.erb new file mode 100644 index 000000000..de67318fa --- /dev/null +++ b/app/views/liquids/_replit.html.erb @@ -0,0 +1,3 @@ +
+ +