Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to draw grid with templates.js? #47

Closed
NicolasSiver opened this issue Oct 3, 2015 · 3 comments
Closed

How to draw grid with templates.js? #47

NicolasSiver opened this issue Oct 3, 2015 · 3 comments

Comments

@NicolasSiver
Copy link

Create lists is easy:

    <!-- BEGIN users -->
    <div class="row">
        <div class="col-md-12">
            //SOME USER
        </div>
    </div>
    <!-- END users -->

But what if I want to draw users as a grid? For example 3 columns (so bootstrap class will be col-md-4)

@psychobunny
Copy link
Collaborator

    <div class="row">
       <!-- BEGIN users -->
        <div class="col-md-4">
            //SOME USER
        </div>
        <!-- END users -->
    </div>

Does this work?

@NicolasSiver
Copy link
Author

What do you mean? I have provided just a pseudocode. Lists are easy by using iteration over array.

@psychobunny
Copy link
Collaborator

Hmm perhaps I misunderstood then. Can you provide the resulting HTML so I can understand what you mean?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants