stencilproject/Stencil

Literal '%' in template

paulmelnikow opened this issue · 6 comments

Hi, thanks for the great library!

I'm using Stencil to generate an HTML page with an embedded style sheet.

My template has lines like this:

<style>
    table {
        font-size: 140%;
    }
</style>

When Stencil renders this template, it drops the %:

<style>
    table {
        font-size: 140;
    }
</style>

Is this a bug? Is there a way to work around it?

kylef commented

This is certainly a bug, we should fix it!

kylef commented

I'll try cleanup this with #136 and #135 and make a patch release.

Woot! Thanks for the fast response!

kylef commented

@paulmelnikow I'm actually not able to reproduce this. Could you please share a bit more information:

  • Swift Version
  • Stencil version
  • Any extensions or tools used in conjunction with Stencil

Just saw this. Surprised! Though yes, I will give it a shot and see.

I haven't had time to get back to this, though I suspect the problem was an NSLog that should have been print.