Rasmus Kaj
Rasmus Kaj
Yes, something like that. Your idea of not generating output for template lines that is only statements would be nice, but a bit harder to implement. Ructe does not look...
Yes, some kind of whitespace removal would be nice. But as some whitespace is sometimes needed, there need to be a good syntax to chose if whitespace should be kept...
Given a code block, there are basically four positions where there may or may not exist whitespace, and in a conditional, two of them may exist in two variants: ```...
If we want some keyword to switch between differernt whitespace-handling modes, I think I want three modes to exist: * *As-is*: All whitespace is retained. * *Compact*: The fact that...
Here's a bunch of code that may be useful. I'm thinking about adding something like this `HtmlJoiner` helper struct to ructe, but I'm not sure about the api. ```rust use...
I went ahead and wrote a PR. Could you, @OskarPersson , check if it (the branch `join-html`) is usable in your context? Do you have any input on the questions...
Turns out the code as it is now has problem with types and/or lifetimes when actually using a template with join_html. Looking at how to fix it, may have to...
Thanks for the report! I'll look into it! Are you using ructe 0.14.0 (the latest release) ?
Ah. I have only used ructe in binary crates, and doc tests are by default not used in binary crates. Adding a test of using ructe in a library crate,...
Currently, `compact` mode can lead to two consecutive space/newline characters, where one comes from the outside of a block and one from the inside. I don't really know how to...