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

What is Framer? Join the Community
Return to index
John Anthony Evans
Posted Dec 09 - Read on Facebook

Is there any chance of getting some way to support something like import/require so we can keep repetitive code in separate files? I'd like to have a library of things like colors, curves, and common functions, and right now my files are becoming hundreds of lines long.

10 Comments

Mike Feldstein

I'm releasing an app (hopefully later today) that may be up your alley. It's made for larger prototypes that have multiple files. Shoot me an email at [redacted] and i'll get you access.

Stephen Crowley

I'm interested in this as well. Shooting you an email Mike Feldstein

Bruno Bergher

Why wouldn't multiple script tags handle it for you?

John Anthony Evans

A few reasons. AFAIK I can't simply have a plugin/SomeBigClass.coffee file, it needs to be compiled to JS, which means I now need to deal with that Also I seem to have to attach everything to window. I really just want to have a series of .coffee files that get prepended to the thing I'm working on and not have to mess with the framer template files at all.

Also the whole point of using something like Framer Studio is that I can just use it and not worry about rolling all this stuff myself. Once I am using framer studio plus sublime text why not just go back to sublime text?

Stephen Crowley

Same logic as John. I would love to have multiple tabs of coffee files and a main one that includes those files.

Bruno Bergher

Oh, that's fair. The group is about FramerJS in general, so I didn't assume it was specific to Studio. In that case a feature like that certainly makes sense. I use Sublime + a local webserver myself.

Mike Feldstein

Yeah what im building is for people who want to use sublime text, have a directory of autocompiled coffeescript files, and mirror it on device, with the coffee precompiled so it doesn't have to do it on the (slow) device. The workflow of framer studio is so simple its stunning, I'm trying to see how to grow that to bigger prototypes without giving up too much simplicity.

John Anthony Evans

Bruno ah yes. I forget it's not just studio. I am finding myself using more and more tools at once. Last week I was upto cactus, framer studio and sublime at the same time. Mirror in Studio means no more Cactus for a while at least :)

Stephen Crowley

I'm at 2k+ lines, ha!

Benny Chew

Koen Bok OOP support would be very welcome!! Just checked out this prototype which uses classes. If the Framer Studio UI has some sort of way (side bar) to keep things in separate classes/files and use import to link them, it would make coding it in way easier (much less pain for longer scripts)! Without using external editor of course... Feature request nr 2: Please add a light theme, my eyes hurt staring at the black screen with white text http://framerjs.com/examples/preview/#snap-scroll.framer

Read the entire post on Facebook