Hi, this is not really a Camping question, but a Markaby one, so please don''t be angry, please! :) How can I use HTML5 tags (for example <footer>) and HTML5 compliant attributes (for example data-content="xxx") in Markaby? It throws an error when I try this. I''ve workarounded it with text "<footer>" and text "<div data-content=\"xxx\">" but this isn''t the nicest solution. How would you do these? u. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/camping-list/attachments/20111105/93bf8883/attachment.html>
Hi Nokan for current efforts in this direction, see here: https://github.com/markaby/markaby/issues/18 and here: https://github.com/markaby/markaby/pull/26 and note: https://github.com/igravious/markaby/commit/8be76d138228a32500f96140afca79bf95751e40 Or even: https://github.com/zimbatm/miniby but note "Miniby is just a small experiment I did over my trip to london. Some ideas I wanted to try-out while implementing a Markaby clone. Don?t expect no support of future development :-)" DaveE> this is not really a Camping question, but a Markaby one, so > please don''t be angry, please! :) > > How can I use HTML5 tags (for example <footer>) and HTML5 > compliant attributes (for example data-content="xxx") in Markaby? > It throws an error when I try this. I''ve workarounded it with > text "<footer>" and text "<div data-content=\"xxx\">" but this > isn''t the nicest solution. How would you do these?
If you add the line ''@auto_validation = false'' to the beginning of your layout, markaby aught to stop minding if you use things unspecified in xhtml. I''m not too sure if that will let you use unknown tags, or just unknown attributes. If you have any trouble getting unknown tags to work, try using the tag! method: tag! ''footer'', arg, arg, arg? effectively is a more explicit and direct version of: footer arg, arg, arg? Hope that helps! Hopefully we''ll have a html5-friendly markaby soon. :) ? Jenna On 05/11/2011, at 11:22 PM, Nokan Emiro wrote:> Hi, > > this is not really a Camping question, but a Markaby one, so > please don''t be angry, please! :) > > How can I use HTML5 tags (for example <footer>) and HTML5 > compliant attributes (for example data-content="xxx") in Markaby? > It throws an error when I try this. I''ve workarounded it with > text "<footer>" and text "<div data-content=\"xxx\">" but this > isn''t the nicest solution. How would you do these? > > u. > > > _______________________________________________ > Camping-list mailing list > Camping-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/camping-list
2011/11/5, Jenna Fox <a at creativepony.com>:> If you add the line ''@auto_validation = false'' to the beginning of your > layout, markaby aught to stop minding if you use things unspecified in > xhtml. I''m not too sure if that will let you use unknown tags, or just > unknown attributes. > > If you have any trouble getting unknown tags to work, try using the tag! > method: > > tag! ''footer'', arg, arg, arg? > > effectively is a more explicit and direct version of: > > footer arg, arg, arg? > > Hope that helps! Hopefully we''ll have a html5-friendly markaby soon. :) > > ? > Jenna > > > On 05/11/2011, at 11:22 PM, Nokan Emiro wrote: > >> Hi, >> >> this is not really a Camping question, but a Markaby one, so >> please don''t be angry, please! :) >> >> How can I use HTML5 tags (for example <footer>) and HTML5 >> compliant attributes (for example data-content="xxx") in Markaby? >> It throws an error when I try this. I''ve workarounded it with >> text "<footer>" and text "<div data-content=\"xxx\">" but this >> isn''t the nicest solution. How would you do these? >> >> u. >> >> >> _______________________________________________ >> Camping-list mailing list >> Camping-list at rubyforge.org >> http://rubyforge.org/mailman/listinfo/camping-list > > _______________________________________________ > Camping-list mailing list > Camping-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/camping-list >-- -- Matma Rex
Hi there, I have a Markaby fork that does HTML5 https://github.com/igravious/markaby Use it like this: html_five do . . . end It recognizes header and footer and all the rest and sets the right incantations in DOCTYPE and the html and head tags. Patches welcome for bits I have missed out on. I''ve even removed tags that are deprecated, and added attributes that have been added. I''ve included URLs to a diff file between the HTML4 and 5 spec so it should be easy to build on what I have done. Hop you find it useful and hope it does what you need. Regards, Anthony On Sat, Nov 5, 2011 at 2:22 PM, Nokan Emiro <uzleepito at gmail.com> wrote:> Hi, > > this is not really a Camping question, but a Markaby one, so > please don''t be angry, please! :) > > How can I use HTML5 tags (for example <footer>) and HTML5 > compliant attributes (for example data-content="xxx") in Markaby? > It throws an error when I try this. I''ve workarounded it with > text "<footer>" and text "<div data-content=\"xxx\">" but this > isn''t the nicest solution. How would you do these? > > u. > > > > _______________________________________________ > Camping-list mailing list > Camping-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/camping-list >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/camping-list/attachments/20111109/934fad79/attachment.html>
Anthony - that''s great. I think I mentioned your fork in an earlier response - have those changes been been pulled into https://github.com/markaby/markaby/ or - if not - are they likely to be? - Dave> Hi there, > > I have a Markaby fork that does HTML5 > > https://github.com/igravious/markaby > > Use it like this: > > html_five do > > . > . > . > > end > > It recognizes header and footer and all the rest and sets the right > incantations in DOCTYPE and the html and head tags. Patches welcome > for bits I have missed out on. I''ve even removed tags that are > deprecated, and added attributes that have been added. I''ve included > URLs to a diff file between the HTML4 and 5 spec so it should be > easy to build on what I have done. Hop you find it useful and hope > it does what you need. > > Regards, > Anthony > > On Sat, Nov 5, 2011 at 2:22 PM, Nokan Emiro <uzleepito at gmail.com> > wrote: > Hi, > > this is not really a Camping question, but a Markaby one, so please > don''t be angry, please! :) > > How can I use HTML5 tags (for example <footer>) and HTML5 compliant > attributes (for example data-content="xxx") in Markaby? > It throws an error when I try this. I''ve workarounded it with text > "<footer>" and text "<div data-content=\"xxx\">" but this isn''t > the nicest solution. How would you do these? > > u. > > Camping-list mailing list > Camping-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/camping-list-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/camping-list/attachments/20111112/12a9dd2b/attachment-0001.html>
No, I guess not. The changes need tests and some more love. They work for me. On Sat, Nov 12, 2011 at 10:36 AM, Dave Everitt <deveritt at innotts.co.uk>wrote:> Anthony - that''s great. I think I mentioned your fork in an earlier > response - have those changes been been pulled into > https://github.com/markaby/markaby/<https://github.com/markaby/markaby/issues/18>or - if not - are they likely to be? - Dave > > Hi there, > > I have a Markaby fork that does HTML5 > > https://github.com/igravious/markaby > > Use it like this: > > html_five do > > . > . > . > > end > > It recognizes header and footer and all the rest and sets the right > incantations in DOCTYPE and the html and head tags. Patches welcome for > bits I have missed out on. I''ve even removed tags that are deprecated, and > added attributes that have been added. I''ve included URLs to a diff file > between the HTML4 and 5 spec so it should be easy to build on what I have > done. Hop you find it useful and hope it does what you need. > > Regards, > Anthony > > On Sat, Nov 5, 2011 at 2:22 PM, Nokan Emiro <uzleepito at gmail.com> wrote: > >> Hi, >> >> this is not really a Camping question, but a Markaby one, so please don''t >> be angry, please! :) >> >> How can I use HTML5 tags (for example <footer>) and HTML5 compliant >> attributes (for example data-content="xxx") in Markaby? >> It throws an error when I try this. I''ve workarounded it with text >> "<footer>" and text "<div data-content=\"xxx\">" but this isn''t the >> nicest solution. How would you do these? >> >> u. >> >> Camping-list mailing list >> Camping-list at rubyforge.org >> http://rubyforge.org/mailman/listinfo/camping-list >> > > > _______________________________________________ > Camping-list mailing list > Camping-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/camping-list >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/camping-list/attachments/20111118/51b5e737/attachment.html>