Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Feb 03 05:12
    dependabot[bot] labeled #252
  • Feb 03 05:12
    dependabot[bot] opened #252
  • Feb 03 05:12

    dependabot[bot] on npm_and_yarn

    Bump http-cache-semantics from … (compare)

  • Jan 07 03:25
    dependabot[bot] labeled #251
  • Jan 07 03:25
    dependabot[bot] opened #251
  • Jan 07 03:25

    dependabot[bot] on npm_and_yarn

    Bump json5 from 1.0.1 to 1.0.2 … (compare)

  • Dec 08 2022 00:04

    nebrelbug on npm_and_yarn

    (compare)

  • Dec 08 2022 00:04
    nebrelbug closed #249
  • Dec 08 2022 00:04

    nebrelbug on master

    Bump qs from 6.5.2 to 6.5.3 Bu… Merge pull request #249 from sq… (compare)

  • Dec 08 2022 00:03

    nebrelbug on npm_and_yarn

    (compare)

  • Dec 08 2022 00:03

    nebrelbug on master

    Bump tmpl from 1.0.4 to 1.0.5 … Merge pull request #234 from sq… (compare)

  • Dec 08 2022 00:03
    nebrelbug closed #234
  • Dec 08 2022 00:02

    nebrelbug on npm_and_yarn

    (compare)

  • Dec 08 2022 00:02

    nebrelbug on master

    Bump i from 0.3.6 to 0.3.7 Bum… Merge pull request #235 from sq… (compare)

  • Dec 08 2022 00:02
    nebrelbug closed #235
  • Dec 07 2022 23:55
    dependabot[bot] edited #249
  • Dec 07 2022 23:55
    dependabot[bot] edited #235
  • Dec 07 2022 23:55
    dependabot[bot] synchronize #249
  • Dec 07 2022 23:55
    dependabot[bot] edited #249
  • Dec 07 2022 23:55

    dependabot[bot] on npm_and_yarn

    Bump qs from 6.5.2 to 6.5.3 Bu… (compare)

Ben Gubler
@nebrelbug
As far as default filters, I think we probably want to keep the core library size down. However, it would be awesome if someone created a filter library that would load lots of helpful filters (like nl2br, join, first, etc.) into Squirrelly.

@/all Hey everyone! Just wanted to share that Squirrelly is looking for a new lead maintainer: see squirrellyjs/squirrelly#210. As of October 28th, I will be unable to continue developing the project.

My plan is to have Squirrelly's API stabilized and well-tested by that time. We should also have fairly decent documentation, several plugins, and integrations with popular tools and server frameworks.

In case I'm unable to find a maintainer, I have backup plans to ensure that Squirrelly can continue to be developed (see the link above for more info).

Several of you on this chat have been influential in guiding Squirrelly's progress -- message me if you would like to become a maintainer! (In the link above, I listed a few maintainer requirements you should check first)

Ben Gubler
@nebrelbug
I've loved working with all of you throughout Squirrelly's development, and hope it has been a helpful tool. Best wishes to all of you!
tabarra
@tabarra
Congratz on your new job!
It will be sad to not have you on the frontline of this project tho :(
Ben Gubler
@nebrelbug
Thanks @tabarra! I've enjoyed collaborating with you.
Ben Gubler
@nebrelbug
If anybody would like to contribute to Squirrelly, I've added it to Code Shelter. They should be able to vet potential contributors and grant edit and release access :)
thearthouse
@thearthouse
why googlebot cannot render Sqrl content? on google search its only showing {{title}}.
Saia Fonua
@sfonua10
I'm new to squirrlleyjs, is there a way to log out data coming in to a page?
isgj
@isgj_gitlab
Hi does v7 support #elif (...)?
Ilan Levy
@ilanl
Hi guys, I really love this template engine, currently using it in Node. But is there a port in Python?
tabarra
@tabarra
@nebrelbug hey ben, i know you are not maintaining it anymore
but there is some high severity CVE for squirrelly
any chance of a fix?
Tom MacDonald
@tsmacdonald51
Does squirelly v8 support inline partials like Handlebars?
Kathrin De Cecco
@kathrindc
Hey everyone, sorry if it's a dumb question, but I'm trying to use JS-style fallbacks in my templates and I'm consistently getting bad template syntax errors. Any ideas how I could provide a fallback value for something? (eg. something.property contains null and I'd like to use an empty string as a fallback value so it doesn't print null in the rendered output)
Aaron
@aarongerig

@kathrindc You could define a custom „default“ filter, which either returns the given value or a passed fallback value if the original one is null.

Here‘s an example:

Sqrl.filters.define('default', (value, fallback = '') => value || fallback);
Kathrin De Cecco
@kathrindc
Ah okay, so I'm currently using squirrelly via express. Where would I need to define that helper?
Aaron
@aarongerig
Hmmm… anywhere you have access to the Squirelly library and before you actually render the template.
Kathrin De Cecco
@kathrindc
Yup, turns out the easiest way to use custom filters was to bypass the express integration completely. I tried passing the required module into app.set('view engine', Sqrl), but that expected a string. So I'll just use a wrapper module to pre-configure Squirrelly. Thanks a lot for the tip @aarongerig ^-^
Dave Myron
@contentfree
Is there a CLI for Squirrelly? I have a template in a file that I want to parse with Squirrelly (that will then be fed into an image rendering pipeline)
Abdullah Alharbi
@W2AlharbiMe
hello
i have quick question for the creators or for anyone that know the reason, why there's eta and squirrelly ?
why not only one template engine
Ilan Levy
@ilanl
Hi, I'm wondering if we can use squirrelsj to render a JSON as template ?
Ben Gubler
@nebrelbug
Hey everyone, I'm back from serving as a missionary for 2 years.
@contentfree there isn't an official CLI.
@W2AlharbiMe eta is focused on embedded templating (using JavaScript syntax) while Squirrelly provides more features and a special syntax for more readability.
@ilanl yes, it's possible!
Sorry for the late replies ;)
activestylus
@activestylus
Two questions:
(1) I cant seem to find documentation on how to use extends, how hierarchy works or how to use layouts. Like, in EJS you have places you can yield content in the master layout, from the child template. Not sure if this is possible with squirrely?
(2) I see there is control over whitespace, but is there a way to minify the compiled html?
Thanks in advance
Ben Gubler
@nebrelbug
  1. There isn't super good documentation about layouts, but you can poke around in the tests folder to see how it works. https://github.com/squirrellyjs/squirrelly/blob/master/test/templates/layout.sqrl is a good example.
  2. You'll have to minify HTML using another tool.
waver-ctx
@waver-ctx

Hello, First of all thanks for this engine. Very helpful.

I have a question. If I want to use same expression multiple times in a same template, what is the best way without repeating it multiple times.

For example:
Let us say formatted_name is used in a template few times. Right now I am using {{ it.name | lowerCase}} multiple times. Is there a way I can assign this formatted value like {{! formatted_name = it.name | lowerCase }} and use {{formatted_name }}

Thanks