From b6ab47c016fb3c384ffaf347ca9d74bda8d9fca5 Mon Sep 17 00:00:00 2001 From: Mario See Date: Wed, 8 May 2019 13:07:26 -0400 Subject: [PATCH] Codesandbox Liquid tag render to utilize ActionController (#2747) [ci skip] --- app/liquid_tags/codesandbox_tag.rb | 13 +++++++++---- app/views/liquids/_codesandbox.html.erb | 5 +++++ 2 files changed, 14 insertions(+), 4 deletions(-) create mode 100644 app/views/liquids/_codesandbox.html.erb diff --git a/app/liquid_tags/codesandbox_tag.rb b/app/liquid_tags/codesandbox_tag.rb index 1f4551771..ca60d698d 100644 --- a/app/liquid_tags/codesandbox_tag.rb +++ b/app/liquid_tags/codesandbox_tag.rb @@ -1,4 +1,6 @@ class CodesandboxTag < LiquidTagBase + PARTIAL = "liquids/codesandbox".freeze + def initialize(tag_name, id, tokens) super @id = parse_id(id) @@ -6,10 +8,13 @@ class CodesandboxTag < LiquidTagBase end def render(_context) - '