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

support (a + b) * 3 > c #92

Open
spaceone opened this issue Dec 20, 2013 · 6 comments
Open

support (a + b) * 3 > c #92

spaceone opened this issue Dec 20, 2013 · 6 comments

Comments

@spaceone
Copy link

I am writing XML files with the plugin but i am missing a functionality to group things for repeating:

(a + b) * 3 > c

<a><c/></a>
<a><c/></a>
<a><c/></a>
<b><c/></b>
<b><c/></b>

@ghost
Copy link

ghost commented Feb 28, 2014

What is the output you're expecting? This is my interpretation of it:

<a></a><b></b>
<a></a><b></b>
<a></a><b></b>
<c></c>

Is that correct?

@spaceone
Copy link
Author

spaceone commented Mar 3, 2014

No, i would expect something like:

<a><c/></a>
<a><c/></a>
<a><c/></a>
<b><c/></b>
<b><c/></b>
<b><c/></b>

@jansenm
Copy link

jansenm commented Mar 4, 2014

I would like that too. Best would be to keep that zencoding compatible

https://code.google.com/p/zen-coding/

Abbreviation groups with unlimited nesting: div#page>(div#header>ul#nav>li_4>a)+(div#page (h1>span)+p_2)+div#footer. You can literally write a full document markup with just a single line.

I btw agree with noone here. The example given makes no sense.

a*3>c gives

<a href="">
    <c></c>
</a>
<a href="">
    <c></c>
</a>
<a href="">
    <c></c>
</a>

the c gets wrapped into the tag/part in front of the > which just does not make sense with a group there.

The output by spaceone should be the result of this

(a_3>c)+(b_3>c)

which i agree is not really short :(. And sporkbox output should be the results of this.

(a+b)*3+c

@spaceone
Copy link
Author

spaceone commented Mar 4, 2014

In my case c is not only c but some more things, I don't want to repeat them.

@jansenm
Copy link

jansenm commented Mar 4, 2014

I understand that. And sympathize with it. Unfortunately that would require some new feature i would say. The features we have just don't provide it. How about

(a|b)*3>c

But i don't see the usefulness for html development here. But i guess it could be done.

@spaceone
Copy link
Author

spaceone commented Mar 4, 2014

I am not developping only HTML but also XML. "|" is for me "or" or a pipe.

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