diff --git a/lib/chili_project/liquid/legacy.rb b/lib/chili_project/liquid/legacy.rb index 73642e56e83566356419dd227c721cc5ef31dceb..ab92800b8c2a177be81d56006070f171e904ce9b 100644 --- a/lib/chili_project/liquid/legacy.rb +++ b/lib/chili_project/liquid/legacy.rb @@ -54,5 +54,13 @@ module ChiliProject end end end + + # FIXME: remove the deprecated syntax for 4.0, provide a way to migrate + # existing pages to the new syntax. + # + # See ChiliProject::Liquid::Tags for the registration of the tags. + Legacy.add('child_pages', :tag) + Legacy.add('hello_world', :tag) + Legacy.add('include', :tag) end end diff --git a/lib/chili_project/liquid/tags.rb b/lib/chili_project/liquid/tags.rb index 41a28f7b3c385fcf4d250ec59cfe31a6f1a8c248..ff5ef855d6d12d69f0a23ec73c97efb3867fef24 100644 --- a/lib/chili_project/liquid/tags.rb +++ b/lib/chili_project/liquid/tags.rb @@ -31,8 +31,3 @@ module ChiliProject::Liquid end end -# FIXME: remove the deprecated syntax for 4.0, provide a way to migrate -# existing pages to the new syntax. -ChiliProject::Liquid::Legacy.add('child_pages', :tag) -ChiliProject::Liquid::Legacy.add('hello_world', :tag) -ChiliProject::Liquid::Legacy.add('include', :tag)