Comments

I haven't touched the Assetic app in a while, and it looks like there were two problems: A change to Elefant's autoloader broke the cascading to the app's own autoloader, and I added a file_exists() check before the line with the error you saw too. Seems to be working well again now, but you'll need to update Elefant (the file lib/Autoloader.php) and the Assetic app (the file handlers/index.php).

Gonna be a bit slow getting back to your other posts, I'm laid up sick and getting through it with tons of NyQuil and 80's movies, haha... I'm sure I'll be back on my feet in a day or so though :)

Thanks and no worries! I've been having a blast with elefant and posting whatever I think of whenever I think of it. Please don't feel like you need to answer, although I always appreciate and enjoy what you have to say.

That seems to fix the error and the path issue, but I still get an error when I try to recompile assets from the admin screen: ErrorException: touch(): Unable to create file layouts/layouts/admin.html because No such file or directory

You shouldn't have to adjust the save_path or web_path in most installs. It looks like there were a couple issues with the admin area. I just pushed a fix to github that should take care of it. Sorry about that!

When I recompile assets from assetic/admin, cache/assetic/css_mobile.css is updated after a page view, but cache/assetic/css.css is not.

Still having trouble installing from designer/installer, BTW. Maybe I'm doing something wrong or my permissions are not what the installer expects. I'm copying and pasting e.g. https://github.com/jbroadway/assetic.git into the 'Link to a zip file or Github repository' field, but I still get empty files after what the installer claims was a successful install.

Hmm, I'll have to test to see if there's a reason it's not updating the files properly. It should recompile when it finds an updated file modification time on the layout compared to the compiled CSS. I'll keep you posted on that.

Unfortunately there's no way to tie $page->add_script() or add_style in with Assetic yet. That's something that's on my radar, but I haven't figured out the right solution yet.

As for the installer issues, I've added a bunch more error handling but I think what you're running into is Github's rate limiting on their API. They only allow 60 anonymous calls per hour, which means fetching the file list and up to 60 files before it will start failing.

An alternative is to grab the zip link from Github (to the left of the git clone url) and use that. Shouldn't hit any limits then :)

$page->add_script() starts adding to the head first, unless you specify otherwise, but starts outputting in place once the layout template has started rendering (e.g., on {! app/handler !} style includes in the layout.

Unfortunately, there's no way to add your credentials to the app, so the Github limit is a hard limit for the installer. It's okay for single app installs, but zip installs should work better and are usually faster too since it only has to retrieve a single file.

I think I was having trouble with zip installs from the installer, too, and had to download them elsewhere, unzip, and move the folder into apps. I'll try the installer again next time I download an app.