stepharo <[email protected]> writes:

> Hi
>
> I read that it is not really good to use
> tbsContainer: and friend in seaside bootstrap and I would like to know
>
>      - what are bootstrap mixin tags?
>      - how do we use them?

everything is explained here: Please stop embedding Bootstrap classes in
your HTML!
http://ruby.bvision.com/blog/please-stop-embedding-bootstrap-classes-in-your-html


The argument is that having html code like this:

    <div class="row">
      <div class="span6">...</div>
      <div class="span6">...</div>
    </div>

goes against the separation of rendering and content that CSS is
supposed to bring. Adding all those bootstrap classes everywhere in the
HTML is not better than adding <table> tags to layout web pages.

In the above web page, the author explains how to use SCSS/SASS/Less
mixins to add sanity to your html. Something like:

    <div class="book-previews">
      <div class="book-preview">...</div>
      <div class="book-preview">...</div>
    </div>

and the SCSS/SASS/Less stylesheet:

    .book-previews {
      .makeRow();        // Mixin provided by Bootstrap
      ...
    }



-- 
Damien Cassou
http://damiencassou.seasidehosting.st

"Success is the ability to go from one failure to another without
losing enthusiasm." --Winston Churchill

Reply via email to