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

Read abbreviations from css #49

Closed
hugosenari opened this issue Apr 7, 2012 · 3 comments
Closed

Read abbreviations from css #49

hugosenari opened this issue Apr 7, 2012 · 3 comments

Comments

@hugosenari
Copy link

Hi,

Here is my suggestion:

Read abbreviations from css file/css rules.
With this feature users can define one css lib and reuse code.

Like this:

#something{....}
    #something > ul{....}
        #something > ul > li {....}
            #something > ul > li > a{....}

Then i can use:

something

And expand to:

<div id="something">
    <ul>
        <li><a href=""></a></li>
    </ul>
</div>

I know that need more specs about how this works, and don't know if is possible (without years codding).

@hugosenari
Copy link
Author

maybe simplify reading from cssdocs

/**

  • @expand #something>ul>li>a
    */
    #something...

@sergeche
Copy link
Member

This feature will produce undesired output. For example, I might need to produce just <div id="something"> with #something, but it will produce a large structure that I don't need. Also, this feature requires you to type tag names in CSS to produce expected result, as well as use > operator instead of space.

You can do the very same things with expandos: 'something+': '#something>ul>li>a'

@hugosenari
Copy link
Author

Hi, thanks for your comments, is great to have a feedback.. : )

If I had this #something defined, is desired all output, It remember-me that I had this defined and maybe isn't good idea use this same id for other structure. Maybe this feature only work for defined cases like: "only work for selectors that use >" or "only work for selector with cssdoc @expand"...

Yes, but is more simple to developers define this things from existing code, like Eclipse users can autocomplete from codes of current project, imported things, etc.

Anyway is just one suggestion, please close this issue if dislike.

@sergeche sergeche closed this as completed May 7, 2012
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