I agree with you that adding HAML and SASS to the core will require extra effort to maintain documentation, fixing bugs etc. One of the reason of asking to add them to the core is to be "bless" HAML and SASS so the community will keep them updated. The other reasons are of course the development speed, more concise code and elegance that come from using HAML( http://haml-lang.com ) and SASS ( http://sass-lang.com ).
We will not have to re-implement the DSL. Regarding HAML if you use phamlp you just need to add a haml.php file in the View folder. I am not a licensing expert. Phamlp is under New BSD License and Cake under MIT. I am not sure how compatible they are but if this is the only problem it is worthwhile to ask the author of phamlp to consider dual licensing.
Regarding SASS,it is pretty much a CSS filter and it already come with the necessary file to plug it in.
I do not think 50Kb or so more PHP code will be a problem and Both HAML and SASS will not have any performance decrease for people that do not want to use them (even if I would push to make them the new default like the Ruby community did).
Best,
Chris
On Sun, Sep 18, 2011 at 9:01 AM, mark_story <mark.story@gmail.com> wrote:
I'd rather not add support for HAML and SASS directly to CakePHP.
This would require re-implementing both DSL's in PHP, and under a
license that is compatible with CakePHP's. The re-implementation
alone is reason enough to not bother with it. Not to mention the
additional burden of maintaining documentation, bugs, for these
features. These DSLs, while useful could also be interpreted as
'bloat' but people not using them. I'd rather keep CakePHP small, and
leave features like this up to the plugin community.
-Mark
On Sep 16, 3:32 am, Chris <ch.ti...@googlemail.com> wrote:
> I think Sass won't be a problem as you could set it to compile to
> webroot/css/
>
> On 16 Sep., 08:59, Walther <waltherl...@gmail.com> wrote:
>
>
>
>
>
>
>
> > CakePHP isn't modeled after Ruby (Or Ruby on Rails). It is simply a
> > PHP framework that follows the MVC architecture, and Ruby on Rails is
> > a Ruby framework that also follows the MVC architecture. That is
> > pretty much their only simularity.
>
> > Perhaps you could be better helped if you actually added what warnings
> > and notices you get. People can't guess them out of the blue.
>
> > Also, remember that quite a bit has changed in CakePHP 2.0, so unless
> > that plugin has been specifically modified for CakePHP 2.0, you are
> > going to need to follow the migration guide to change it to work with
> > 2.0.
>
> > On Sep 16, 3:56 am, Chris Cinelli
>
> > <chris.cine...@formativelearning.com> wrote:
> > > I forgot to mention that I tried to follow the instruction here :https://github.com/goncaloesteves/phamlp/blob/master/Cake/Installatio...
> > > And I even substitute var $view = 'Haml'; => var $viewClass = 'Haml';
>
> > > But cake give warning and notice later.
>
> > > On Thu, Sep 15, 2011 at 6:28 PM, Chris Cinelli <
>
> > > chris.cine...@formativelearning.com> wrote:
> > > > I think almost everybody familiar with Ruby knows:
> > > >http://haml-lang.com/
> > > > and
> > > >http://sass-lang.com/
>
> > > > Since CakePHP is modeled after Ruby and in the spirit of having to write
> > > > less code with more syntactic juice it would be great to have them in cake.
>
> > > > Fortunately someone already though to that. So here is this great piece of
> > > > code that has CakePHP extension:
> > > >https://github.com/goncaloesteves/phamlp
>
> > > > But following the instruction in the Cake folder does not make it work in
> > > > Cake 2.0.
> > > > Someone know how to solve the problem?
>
> > > > On a side node, I think that it would be great to add it to Cake as a
> > > > default plugin. Ruby 3.1 added sass with compass (
> > > >http://compass-style.org/) as default.
>
> > > > Best,
> > > > Chris
--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
No comments:
Post a Comment