bridgetownrb / bridgetown

A next-generation progressive site generator & fullstack framework, powered by Ruby
https://www.bridgetownrb.com
MIT License
1.16k stars 112 forks source link

"bridgetown plugins new" produces old code #917

Open surrim opened 2 months ago

surrim commented 2 months ago

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.

jaredcwhite commented 2 months ago

Thanks for mentioning this @surrim. There's always a bit of a lag time between when the first betas go out and the new plugin repo is updated for final release. This has been on my personal todo list but it's good to track it an issue publicly. 👍