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

"-class" doesn't compile as a class but a text #113

Closed
YamiOdymel opened this issue Jun 25, 2016 · 3 comments
Closed

"-class" doesn't compile as a class but a text #113

YamiOdymel opened this issue Jun 25, 2016 · 3 comments

Comments

@YamiOdymel
Copy link

YamiOdymel commented Jun 25, 2016

Some CSS framework named their classes like: -large, -big, -disabled,

And when I tried it, it compiled as a text instead of a class.

Tale-Jade:

img.-large.-circular

Compiled:

<img>
  -large.-circular
</img>

Expected:

<img class="-large -circular">
@TorbenKoehn
Copy link
Member

Yep, that's not supported right now.

Try to use class="-large" for now (Think about stacking, you can do class='-large' class='-circular' if you like)

I'll implement this for the next release.

TorbenKoehn pushed a commit that referenced this issue Aug 19, 2016
…solved correctly

Addressed #113, classes can now start with a dash

Addressed #112, block expansion now handles following classes correctly

Addressed #108 and improved error handling, including a re-write of most exception messages with more details
@TorbenKoehn
Copy link
Member

Hey, this should be fixed in the recent commit.

Pull *@dev and tell me if it works

@YamiOdymel
Copy link
Author

It works, thanks :D

Tale Jade

.ts.-abc.-def.-gh-ij.--kl.mn.-op
    .q.r: .s.t
        .u.v: .wx-.yz.-ab.--cd.e
            .f.g: button.h.i.-jkl.--mn
                | Hello, World

Outputed

<div class="ts -abc -def -gh-ij --kl mn -op">
    <div class="q r">
        <div class="s t">
            <div class="u v">
                <div class="wx- yz -ab --cd e">
                    <div class="f g">
                        <button class="h i -jkl --mn">
                            Hello, World
                        </button>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

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

No branches or pull requests

2 participants