jsonresume / theme-manager

Theme server for JSON Resume
MIT License
166 stars 31 forks source link

Serving Assets? #32

Open mudassir0909 opened 8 years ago

mudassir0909 commented 8 years ago

What's the best way to serve assets for your theme? Right now I'm using custom font built using icomoon for theme icons, since the icon font file can't be served, I'm converting the font to base64 format & inlining it.

Can we serve any theme related assets? Perhaps a folder where the theme owners can put theme related assets & it can be served

thomasdavis commented 8 years ago

A public folder sounds good.

Because the themes are pushed to npm, you could also use npmcdn.com in your code to retrieve those files?

mudassir0909 commented 8 years ago

this is awesome :)

Didn't know about npmcdn.com, we can go for it instead of serving via a public folder

thomasdavis commented 8 years ago

Yeah rad, I imagine we could have a resource lib later that knows how to infer the full npmcdn path by itself when in production because it would always be the same.

npmcdn.com + package.name + /public/ + resource.jpg

mudassir0909 commented 8 years ago

yes, sounds good, we could have a handlebars helper which points to local folder during development & npmcdn during production