Welcome Guest, Not a member yet? Register   Sign In
Carabiner 1.4: Asset Management Library
#81

[eluser]kuroir[/eluser]
@tonydewan I've been thinking about merging your library with my ciHeader Library..

ciHeader allows you to set everything between the <header></header> tags putting a lot of emphasis on the Search Engine Optimization Side. It would be really good to actually provide a full ready to go header solution.

What do you think?
#82

[eluser]tonydewan[/eluser]
@kuroir Sounds like a good idea! I would recommend just using Carabiner internally, and providing pass through methods in your library. That way, as changes are made to Carabiner, you can just update the copy you distribute with your lib, and gain any new functionality without having to worry about it.

If you do decide to pull out the Carabiner methods and use them completely in your library, I would recommend taking them all. At the very least, all of the methods that begin with an underscore are private (internal) methods, and are used heavily by each other.

Let me know if you need any help!
#83

[eluser]tonydewan[/eluser]
I just wanted to let everyone know that the Github repository (http://github.com/tonydewan/Carabiner) is now updated and tested. If anyone wants to give it a spin before I "officially" release it (in the wiki and on the first post of this thread), I would very much appreciate it. I'll package it up and push it out later this week.

NOTE: I replaced the curl library I was using with a better one. This shouldn't effect anyone unless you were using it yourself elsewhere. If you were, you should use the new one. It's easier!

EDIT: I may be pushing some new stuff, so if you're going to download from GitHub to test (please do!), use this link:

http://github.com/tonydewan/Carabiner/archives/v1.45b
#84

[eluser]hugle[/eluser]
Hello Tony!

I have tested with some different webpages, I switched to 1.45b without any problems. I did now have to do any changes to the library, just used my old config file ..

Seems good to me !

Btw, I think it would be nice, to have an options, smth limilar to:

if I set a value in config for example - PRODUCTION_SERVER = TRUE;

it would stop library trying to generate tons of .js and .css files.

It would just 'remmeber' old paths to already generated .css and .js files..
Wouldn't it take off the load from server?

Maybe I am missing just something

Thanks!Smile
#85

[eluser]tonydewan[/eluser]
@hugle Thanks for testing. That's an interesting idea. One thing to keep in mind: Carabiner won't actually write any new files unless the source files have changed. It will still do all the stuff it takes to find out what the filename should be, but it won't do any reading/preprocessing/writing unless that file doesn't exist. I haven't done very specific tests, but from what I can tell, the performance hit for this is very negligible. Also, it would be impossible for Carabiner to know what files to reference for a given request (for displaying tags), without doing this or using some kind of stateless storage (like a database, which would be much worse, especially when taking scaling into account.)
#86

[eluser]Antivanity[/eluser]
Im getting the following 2 errors.. Seems to only happen after i make a change to any of the JS/CSS files and it has to minify them and cache them again. Any ideas ?



Severity: Warning

Message: Missing argument 1 for JSMin::__construct(), called in /home/crm.americanshingle.com/system/libraries/Loader.php on line 931 and defined

Filename: libraries/Jsmin.php

Line Number: 74
A PHP Error was encountered

Severity: Notice

Message: Undefined variable: input

Filename: libraries/Jsmin.php

Line Number: 75
#87

[eluser]freshface[/eluser]
Tony, is it possible to incorparate cssscaffold?
http://wiki.github.com/anthonyshort/csscaffold
#88

[eluser]hugle[/eluser]
[quote author="freshface" date="1255871587"]Tony, is it possible to incorparate cssscaffold?
http://wiki.github.com/anthonyshort/csscaffold[/quote]

nice toolSmile
thanks
#89

[eluser]tonydewan[/eluser]
@Antivanity What version are you using? 1.45b from Github, or current 1.43?
#90

[eluser]tonydewan[/eluser]
@freshface It seems like scaffold is sufficiently advanced to be more of a replacement for Carabiner than something to be used with it. I think there could be an opportunity to create a wrapper library, similar to Carabiner in syntax [$this->scaffold->css()] for each given request, though. That's not something I plan on doing, but I bet it would be useful!

Also, I'm working on an extension methodology for Carabiner, where you can define your own pre-processing methods, which would allow you to use a tool that provides similar nesting/mixins/constants like csscaffold. You can see the very beginnings of that on Github in the branch called extend. I'm still working out the kinks there, so don't be surprised if it doesn't work at all.




Theme © iAndrew 2016 - Forum software by © MyBB