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

loop method in jerrymarker #1

Open
xinyuanyu opened this issue Aug 26, 2014 · 0 comments
Open

loop method in jerrymarker #1

xinyuanyu opened this issue Aug 26, 2014 · 0 comments
Labels

Comments

@xinyuanyu
Copy link

Hi,

Jerrymarker is an amazing project and make it easy for me to render template HTMLs in my project.

For the loop part, I'm wondering whether we can have the following feature:

// jerrymarker template 
var t = "<li><span>${name}</span><span>${name}</span></i>"; 
// my data 
var d =  [
            {
                name: 'bob',
                job: 'programmer'
            },
            {
                name: 'jo',
                job: 'student'
            }
        ] ;
// what's expected 
var result = "
    <li>
        <span>bob</span>
        <span>programmer</span>
    </i>
    <li>
        <span>jo</span>
        <span>student</span>
    </i>
    "
@w-y w-y added the question label Oct 13, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants