google / cyanobyte

Machine-readable datasheets
https://cyanobyte.dev
Apache License 2.0
79 stars 31 forks source link

Refactor templates to language-specific directories #269

Closed Fleker closed 3 years ago

Fleker commented 3 years ago

Rename templates directory to work with pip namespace

Rebased work from #262

Fleker commented 3 years ago

This doesn't work as-is because resources cannot have subdirectories.

polfeliu commented 3 years ago

Don't know what problem you have with folders. I think I was able to do it in cantata: https://github.com/polfeliu/cantata/blob/8e4291407a9ac3ada48a380d0281cbcd327bc17e/cantata/main.py#L53

Fleker commented 3 years ago

Might be because you are pointing to the folder itself and not a file in a subdirectory.

Fleker commented 3 years ago

I'll merge this in now as the renaming will be useful ahead of a next release.