Styleguide icon indicating copy to clipboard operation
Styleguide copied to clipboard

Add default JS resources

Open dnwhte opened this issue 8 years ago • 3 comments

Loads default scripts for all snippets. One use case is needing to load fonts through a service like Typekit where JS loading is the only option. Needed for loading font in general section (under font and typography). Note: quick and dirty solution. Could use refactoring.

dnwhte avatar May 06 '16 17:05 dnwhte

Hi, thanks for this, really needed feature. In the meanwhile, is there any way to manually achieve it? Typekit script keep being removed, no matter if I place it in the head or before the closing body of template.html

yumyo avatar Jun 09 '16 11:06 yumyo

@yumyo Take a look at https://github.com/devbridge/Styleguide/pull/150/commits/ecb9cf542efaf79d4684e00af9f32abbcb592a3f to see how I was able to do it. The changes are pretty simple to implement.

dnwhte avatar Jun 09 '16 21:06 dnwhte

Thanks, works smoothly

yumyo avatar Jun 10 '16 11:06 yumyo