Ugh, just spent 30 mins using `?take_while` in a t...
# advancedpdf
d
Ugh, just spent 30 mins using
?take_while
in a template only to find that it's a version 2.3.29 bulit-in... When will NS update freemaker versions!? 😭
</#rant>
s
Still uses CSS2 as well iirc
s
Yes, but that’s a BFO limitation for PDF’s only. Freemarker doesn’t care if you use CSS3 or even if your styles or HTML are valid. If only using templates for HTML, you can do anything you like.
s
Can you explain a bit more? For advanced pdf/html templates (and thus anything that requires bespoke customization), CSS3 cannot be used correct? Transaction HTML templates are only with the WYSIWG editor, correct?
s
The Advanced templates can be used to produce HTML and/or PDF output. If you want to get PDF’s, then you are forced to adhere to BFO’s restrictions, mainly CSS2, but also BFO has many custom properties that aren’t standard HTML. If, on the other hand, you only want the HTML output, you can ignore the BFO restrictions, but you won’t be able to get PDF output. The same template is shared for both HTML and PDF. The main point is that, even upgrading Freemarker would not change the CSS limitations. The BFO limitations on styles would remain the same.
s
Thank you kindly Scott. Right I have never used HTML out put so compeltely forgot u can generate a HTML template. (duh what is PDF/HTML template name for) So in the case I want to use HTML templates, use exact same code but just add css3 stuff
s
Yes, you technically can, but I I usually just try and make do with what BFO enforces. Part of the issue is that a lot of CSS is meant for a website, and doesn’t translate well to a PDF document. But if you really want to, you could produce HTML only templates with a lot more modern features, but breaking PDF compatibility in the process.
s
Dang Ive never encoutnered a case where PDFs weren't needed anyway. Defeats the purpose. I really wish b/c there's two css3 i want to use FLEX and round-corners. Currently, with round corners, it rounds all 4 at a time. Would like control to round only top corners
Thanks for the lesson sir
s
Yes, the corner-radius that BFO supports doesn’t allow selective rounding :(
😵‍💫 1