Re: Mab: The tiny Markaby-alternative

2011-12-20 Thread Magnus Holm
2011/12/19 Bartosz Dziewoński matma@gmail.com:
 2011/12/19 Magnus Holm judo...@gmail.com:
 The real question here is: Should it be a part of camping/mab.rb or
 the Mab-gem? I'm definitely for adding many features (indentation,
 attribute-validation, flow-validation), but not in Camping. The
 Camping implementation should just be enough to get you started.

 My suggestion would be to make it Markaby 2.0 (of course, once it's
 running and mostly backwards-compatible), keeping the old gem name,
 and to develop on a branch in markaby repo.

I'm really not sure about keeping the name though. It feels kinda
weird to just remove everything and start from scratch.

 I also don't think it's a good idea to duplicate functionality - a
 little stub with Camping, richer library elsewhere - just make it a
 dependency, like Isak says.

Okay, no stubs. Either hard or soft dependency.
___
Camping-list mailing list
Camping-list@rubyforge.org
http://rubyforge.org/mailman/listinfo/camping-list

Re: Mab: The tiny Markaby-alternative

2011-12-20 Thread Jenna Fox
Do we want a brand new markaby-like thing to be the grand evolution of Why and 
Tim's initial creation, or do we want to stand out and say Hey world, we've 
made something like Markaby, but heaps better, in the way the Nokogiri clan 
have.

I've changed my mind. I think it should have a new name. Why’s legacy serves 
only as a distraction, lets move on.

I suggest for your consideration: Pagely


—
Jenna Fox


On Tuesday, 20 December 2011 at 7:36 PM, Magnus Holm wrote:

 2011/12/19 Bartosz Dziewoński matma@gmail.com 
 (mailto:matma@gmail.com):
  2011/12/19 Magnus Holm judo...@gmail.com (mailto:judo...@gmail.com):
   The real question here is: Should it be a part of camping/mab.rb or
   the Mab-gem? I'm definitely for adding many features (indentation,
   attribute-validation, flow-validation), but not in Camping. The
   Camping implementation should just be enough to get you started.

   
   
  My suggestion would be to make it Markaby 2.0 (of course, once it's
  running and mostly backwards-compatible), keeping the old gem name,
  and to develop on a branch in markaby repo.
   
  
  
 I'm really not sure about keeping the name though. It feels kinda
 weird to just remove everything and start from scratch.
  
  I also don't think it's a good idea to duplicate functionality - a
  little stub with Camping, richer library elsewhere - just make it a
  dependency, like Isak says.
   
  
  
 Okay, no stubs. Either hard or soft dependency.
 ___
 Camping-list mailing list
 Camping-list@rubyforge.org (mailto:Camping-list@rubyforge.org)
 http://rubyforge.org/mailman/listinfo/camping-list
  
  


___
Camping-list mailing list
Camping-list@rubyforge.org
http://rubyforge.org/mailman/listinfo/camping-list

Re: Mab: The tiny Markaby-alternative

2011-12-19 Thread Magnus Holm
2011/12/18 Bartosz Dziewoński matma@gmail.com:
 I don't have time to look thru now, but it doesn't seem to support
 boolean attributes (e.g. `input checked:true` should render input
 checked=checked /)? I was very much missing this feature in old
 Markaby, and finally even wrote a patch, as you might remember[1].

That's actually supported. If an attribute is `true` it will use the
attribute name as the value. (so checked: true is the same as checked:
checked). Also, false and nil attributes won't be included.

 It'd probably be quite easy to add, and after all it was included in
 the latest 0.7.2 version.


 [1] 
 https://github.com/markaby/markaby/commit/999c418e3c096d2007d18c0a118390bd07d40eb0

 -- Matma Rex
 ___
 Camping-list mailing list
 Camping-list@rubyforge.org
 http://rubyforge.org/mailman/listinfo/camping-list
___
Camping-list mailing list
Camping-list@rubyforge.org
http://rubyforge.org/mailman/listinfo/camping-list

Re: Mab: The tiny Markaby-alternative

2011-12-19 Thread David Susco
Stick with the way we're doing it. I only use markaby when it's
easier/prettier to use then HAML (quick one-line helpers and the
like).

Dave

On Mon, Dec 19, 2011 at 4:26 PM, Magnus Holm judo...@gmail.com wrote:
 On Mon, Dec 19, 2011 at 21:34, Isak Andersson icepa...@lavabit.com wrote:
 My suggestion would be to make it Markaby 2.0 (of course, once it's
 running and mostly backwards-compatible), keeping the old gem name,
 and to develop on a branch in markaby repo.


 Yeah, we should more or less do a rewrite and make it properly open source.
 You are allowed to make something with the same name aren't you? I mean
 there
 is songs with the same names after all.

 So what we would have wouldn't exactly be Markaby but it would be used
 exactly
 like Markaby. We could make it smaller/faster and more up to date :)

 Just so everyone knows: Camping doesn't depend on Markaby today. It's
 only loaded when you actually try to use it. Would you suggest that we
 switch to a hard dependency on Markaby, or should we continue what
 we're doing today?
 ___
 Camping-list mailing list
 Camping-list@rubyforge.org
 http://rubyforge.org/mailman/listinfo/camping-list



-- 
Dave
___
Camping-list mailing list
Camping-list@rubyforge.org
http://rubyforge.org/mailman/listinfo/camping-list


Re: Mab: The tiny Markaby-alternative

2011-12-19 Thread David Susco
So then I'd have to remember it's the opposite of the way it's been? :P

Dave

On Mon, Dec 19, 2011 at 5:53 PM, Jenna Fox a...@creativepony.com wrote:
 If no hard dependancies, can we switch it around so core camping is in a
 camping-seedling gem, and the regular camping gem is actually the one with
 all the omnibus? I always forget when setting up a new system and end up
 confused why camping isn't working


 —
 Jenna Fox

 On Tuesday, 20 December 2011 at 9:52 AM, Dave Everitt wrote:

 switch to a hard dependency on Markaby, or should we continue what
 we're doing today?


 no hard dependency, continue as today - DaveE
 ___
 Camping-list mailing list
 Camping-list@rubyforge.org
 http://rubyforge.org/mailman/listinfo/camping-list



 ___
 Camping-list mailing list
 Camping-list@rubyforge.org
 http://rubyforge.org/mailman/listinfo/camping-list



-- 
Dave
___
Camping-list mailing list
Camping-list@rubyforge.org
http://rubyforge.org/mailman/listinfo/camping-list


Re: Mab: The tiny Markaby-alternative

2011-12-19 Thread Jenna Fox
Nah I'd still just think I want camping! I'll install camping! but then it'd 
just work :P  


—
Jenna Fox


On Tuesday, 20 December 2011 at 1:15 PM, David Susco wrote:

 So then I'd have to remember it's the opposite of the way it's been? :P
  
 Dave
  
 On Mon, Dec 19, 2011 at 5:53 PM, Jenna Fox a...@creativepony.com 
 (mailto:a...@creativepony.com) wrote:
  If no hard dependancies, can we switch it around so core camping is in a
  camping-seedling gem, and the regular camping gem is actually the one with
  all the omnibus? I always forget when setting up a new system and end up
  confused why camping isn't working
   
   
  —
  Jenna Fox
   
  On Tuesday, 20 December 2011 at 9:52 AM, Dave Everitt wrote:
   
  switch to a hard dependency on Markaby, or should we continue what
  we're doing today?
   
   
  no hard dependency, continue as today - DaveE
  ___
  Camping-list mailing list
  Camping-list@rubyforge.org (mailto:Camping-list@rubyforge.org)
  http://rubyforge.org/mailman/listinfo/camping-list
   
   
   
  ___
  Camping-list mailing list
  Camping-list@rubyforge.org (mailto:Camping-list@rubyforge.org)
  http://rubyforge.org/mailman/listinfo/camping-list
   
  
  
  
  
 --  
 Dave
 ___
 Camping-list mailing list
 Camping-list@rubyforge.org (mailto:Camping-list@rubyforge.org)
 http://rubyforge.org/mailman/listinfo/camping-list
  
  


___
Camping-list mailing list
Camping-list@rubyforge.org
http://rubyforge.org/mailman/listinfo/camping-list

Mab: The tiny Markaby-alternative

2011-12-18 Thread Magnus Holm
https://github.com/camping/camping/pull/50

Right now it's completely inline in camping/mab.rb, but it should be
fairy easy to create another Rubygem where we could implement for
advanced features (indentation, AJAX-stuff, whatever).

// Magnus Holm
___
Camping-list mailing list
Camping-list@rubyforge.org
http://rubyforge.org/mailman/listinfo/camping-list


Re: Mab: The tiny Markaby-alternative

2011-12-18 Thread Bartosz Dziewoński
I don't have time to look thru now, but it doesn't seem to support
boolean attributes (e.g. `input checked:true` should render input
checked=checked /)? I was very much missing this feature in old
Markaby, and finally even wrote a patch, as you might remember[1].

It'd probably be quite easy to add, and after all it was included in
the latest 0.7.2 version.


[1] 
https://github.com/markaby/markaby/commit/999c418e3c096d2007d18c0a118390bd07d40eb0

-- Matma Rex
___
Camping-list mailing list
Camping-list@rubyforge.org
http://rubyforge.org/mailman/listinfo/camping-list