Carabiner 1.4: Asset Management Library |
[eluser]cahva[/eluser]
About loading Ajax library from google.. Little warning about loading the jquery etc. ajax libraries externally. Couple of weeks ago Google was very slow or not responsive at all(at least from Finland), so couple of sites that I had developed stopped working because of that. Ofcourse Google is normally very reliable but these things can happen also to "big ones". After that incident I've changed those sites to use Jquery etc. locally so they are not dependant of outside connections. I still use google to load libraries when developing but for live sites its a no-no.
[eluser]tonydewan[/eluser]
@cahva I'm glad it makes your life easier. In terms of the Google slowdown, that's another very good point. However, I updated the config file on GitHub such that the predefined asset groups (using the Google API) are not combined, per @dmorin's point. In the end, that's something that obviously should be decided on a project by project basis.
[eluser]Tom Schlick[/eluser]
Just wanted to say i love this library man. We have been using the 1.2 version at work in a production environment without a single case of it not working correctly. i did hack it a little to fit into our smarty install the way we wanted to but the core is just awesome. ill probably be upgrading to your 1.4 release when i figure out what i did when i hacked it haha so i can replicate the same process. Thanks a lot for such a great tool.
[eluser]seanloving[/eluser]
Is there a small example or demo application? Thanks. --Sean Loving
[eluser]Unknown[/eluser]
Hi, I just wanted to say that this is an awesome library. Exactly what I was trying to do and very simple to use, thanks a lot!
[eluser]Antivanity[/eluser]
Fantastic lib! I was about write one my self, saved me time, thanks!
[eluser]hugle[/eluser]
Hello everyone, I want to say that this library is really nice, found it today, and started using it today too ![]() however I should have to do some changes in library, for it to create caches. defaults in library were: Code: $this->script_path = dirname(FCPATH).'/'.$this->script_dir; later I found line above and tried echoing it: Code: echo dirname(FCPATH) and I have replaced with: Code: $this->script_path = FCPATH.$this->script_dir; here, the: Code: echo FCPATH; btw, if I change - $config['dev'] to TRUE; the library does not try to compress the library and works just fine (it finds assets/styles; assets/scripts ...) So I think there is something with paths related to cache... Hope that helps someone else! thanks ![]()
[eluser]hugle[/eluser]
Helo again it seems so that I can't get output to variable, like: Code: $data = $this->carabiner->display('both'); Or I am wrong.. ? maybe there is some option to achieve this? Or I should edit library myself? Thank you again for nice lib!
[eluser]tonydewan[/eluser]
In Carabiner 1.43, display will not return a string. In the 1.45 beta ( available on github at http://github.com/tonydewan/Carabiner ) there is a method called display_string() that does. I haven't fully tested 1.45, but it should be fine to use it. The other option would be to copy that method from 1.45 and add it to 1.43. I plan on adding the last of the planned features for 1.45 and testing it more thoroughly soon. Sorry for the delay! NOTE: the display_string() method in 1.45 simply wraps a call to display() in output buffering. You can just do that yourself without messing with changing/mixing versions if you want.
[eluser]hugle[/eluser]
[quote author="tonydewan" date="1255210283"]In Carabiner 1.43, display will not return a string. In the 1.45 beta ( available on github at http://github.com/tonydewan/Carabiner ) there is a method called display_string() that does. I haven't fully tested 1.45, but it should be fine to use it. The other option would be to copy that method from 1.45 and add it to 1.43. I plan on adding the last of the planned features for 1.45 and testing it more thoroughly soon. Sorry for the delay! NOTE: the display_string() method in 1.45 simply wraps a call to display() in output buffering. You can just do that yourself without messing with changing/mixing versions if you want.[/quote] no problem, I'll just try to use the github version... btw, if you need some help on testing feel free to contact me ![]() |
Welcome Guest, Not a member yet? Register Sign In |