This is a read-only archive of the Framer Community on Facebook.

What is Framer? Join the Community
Return to index
Blaine Billingsley
Posted May 20 - Read on Facebook

QQ regarding modules - is there a way to package images with modules? Like to have a subdirectory within the modules dir for, say, a ton of avatars?


Chris Camargo

Certainly! Just place an assets folder adjacent to your .coffee file in YourProject.framer/modules. You can refer to it in your module by writing...

image: "modules/myModule-assets/asset.jpg"

Or, do what I do and set yourself a path variable...

path = "modules/myModules-assets"
image: "#{path}/asset.jpg"

:) Learned this trick from Jordan Robert Dobson.

Read the entire post on Facebook