plentico / plenti

Static Site Generator with Go backend and Svelte frontend
https://plenti.co
Apache License 2.0
1k stars 48 forks source link

Can't use hyphens in filename #282

Open jimafisk opened 1 year ago

jimafisk commented 1 year ago

Similar to the issue where you can't use spaces in filenames (https://github.com/plentico/plenti/issues/82), it seems like if you try to use a hyphen (-) instead of an underscore (_) you get a somewhat convoluted error:

build.go:152: 
Error in Client build step
Could not get all layouts Could not add SSR Component for layouts/content/event-list.svelte: SyntaxError: Unexpected token '-'

Not sure if this is a bug that was introduced recently, but using hyphens in filenames is probably pretty common. We should allow this.

jamestagal commented 1 year ago

Hi @jimafisk I think i had this issue but changed to underscores but using hyphens in .json files isn't a problem.

Ben