stencilproject / Stencil

Stencil is a simple and powerful template language for Swift.
https://stencil.fuller.li
BSD 2-Clause "Simplified" License
2.35k stars 225 forks source link

Literal '%' in template #137

Closed paulmelnikow closed 7 years ago

paulmelnikow commented 7 years ago

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 7 years ago

This is certainly a bug, we should fix it!

kylef commented 7 years ago

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

paulmelnikow commented 7 years ago

Woot! Thanks for the fast response!

kylef commented 7 years ago

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

paulmelnikow commented 7 years ago

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

paulmelnikow commented 7 years ago

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