and partials when Beard's future is decided, either integrate with Mustache or write something simple from scratch
Łukasz Strzebińczyk
@lstrzebinczyk
Ah, sorry, I also don't support setting unescaped values with {{&
but that is, like, a 15 minutes of work
Hugo Peixoto
@hugopeixoto
you should probably integrate the spec tests into your repository
Ricardo Mendes
@locks
@KillaPL hey, I'm been thinking about KillaPL/beard and while I appreciate your contributions I think you'd do best developing it independently
and then when it passes the spec you can add it to the list of available implementations
it's just too big a change and I think there's some value in a clean room implementation alternative
Łukasz Strzebińczyk
@lstrzebinczyk
Hi. This was one of the ideas I came up with. I have some more work to do with my day job and Beard is standing in place, It will have to wait some time.
I also might have some comments to the spec itself, the spec tests seem to assume the implementation take care of whitespace
but I have to make more of that work first
Ricardo Mendes
@locks
yes, there are some whitespace-related specs
Justin Hileman
@bobthecow
Mostly around “standalone lines”, basically what happens when a line only includes whitespace and a tag that’s not interpolated.
i have an array with 10 articles, i want to display them but in the middle of the list i want to display a 300x250 ad
5 articles, Ad, 5 more articles
Justin Hileman
@bobthecow
@mikehenriquezf Is it always 5 / ad / 5?
split your articles list in half (in code, before it goes to the template). Then do {{# first_set }}{{> article }}{{/ first_set }} {{> ad }} {{# second_set }}{{ > article }}{{/ second_set }}
Does anyone know why trying to render a variable that contains a url, it hides the "http:" part and only shows "//restoftheurl.com"? even when using triple braces to cancel escaping? ie {{{myUrl}}}
Ricardo Mendes
@locks
@Surreal9 that's the first I've heard of
Selwyn
@Siilwyn
Does anybody know if a npm package exists that let's me pass a partial, views (and data) directory to it and in turn outputs html to a given directory?
Ricardo Mendes
@locks
@Siilwyn I don't think so
I suggest a bash script to feed the necessary files to the mustache binary
Selwyn
@Siilwyn
@locks :smile: never expected an answer
hmm that doesn't sound ideal since I'm using npm scripts. Would that be a long bash script?
John Arnold
@Surreal9
@locks I think it's an express view engine thing.. I noticed switching from Mustache I still saw the same behaviour with another engine