nixin72 / from-template

Raco tool for cloning templates from the racket-templates org
MIT License
8 stars 4 forks source link

Provide API so clients can get templates #15

Closed spdegabrielle closed 2 years ago

spdegabrielle commented 2 years ago

currently sauron-ide has templates hard coded:

https://github.com/racket-tw/sauron/blob/1000f38f257e1792bdaf38b7470e73eca480d316/project/manager.rkt#L87

it would be better if there was a call they could make.

e.g.

(require from-template)
(define templates (get-templates))
...
spdegabrielle commented 2 years ago

the list-templates function to return a list of hashes of all the templates available.

spdegabrielle commented 2 years ago

18 provides list-templates function

@spdegabrielle to make PR for Sauron https://github.com/racket-tw/sauron

e.g.

(require from-template)
(define templates (templatehash->list (list-templates)))
...

https://github.com/racket-tw/sauron/blob/1000f38f257e1792bdaf38b7470e73eca480d316/project/manager.rkt#L87

nixin72 commented 2 years ago

Can this also get closed now too @spdegabrielle?

spdegabrielle commented 2 years ago

Closed with my thanks! 👏👏👏