bridgetown icon indicating copy to clipboard operation
bridgetown copied to clipboard

"bridgetown plugins new" produces old code

Open surrim opened this issue 5 months ago • 1 comments

bridgetown plugins new seems to produce old code:

spec.add_dependency "bridgetown", ">= 1.2.0", "< 2.0"

Bridgetown Version: bridgetown 2.0.0.beta2 "(TBD!)"

To Reproduce

bridgetown plugins new test
tail test/test.gemspec

Current behavior The command builds a plugin based on old standards and excludes Bridgetown 2.x. For example it uses Liquid instead of ERB:

cat test/layouts/test/layout.html
cat test/content/test/example_page.md

Expected behavior The command should generate erb code by default or provide a parameter to set the template language. The accecpted version should include 2.0.

surrim avatar Sep 11 '24 19:09 surrim