You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can change this in your site.cfg, but if you don't set it, it defaults to {% and %}.
I'm trying to weigh the pros of cons of setting the default to @_ and _@ since that's what all of AWS's template documentation uses.
Some pros are:
It's consistent with the other AWS operators (e.g. @@IF@@, @@TABLE@@ etc).
This is the biggest pro for me.
It's identical to AWS's documentation, so you can link directly to its other items.
No longer need to override the start/end template unless the change is defined in site.cfg.
Some cons are:
{% and %} are familiar to those migrating from jekyll / liquid
Anyone who upgrades to version 4 without updating their config with Start_TagSeparator = {% and End_TagSeparator = %} will have to change their pages or their site will break.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
YASS currently uses the AWS templates parser.
For those not familiar, you can use operators and tags in the layout html files like:
In YASS, the pre & postfix for tags are
{%
and%}
instead of@_
and_@
, so in YASS the default is currently:You can change this in your
site.cfg
, but if you don't set it, it defaults to{%
and%}
.I'm trying to weigh the pros of cons of setting the default to
@_
and_@
since that's what all of AWS's template documentation uses.Some pros are:
@@IF@@
,@@TABLE@@
etc).Some cons are:
{%
and%}
are familiar to those migrating from jekyll / liquidStart_TagSeparator = {%
andEnd_TagSeparator = %}
will have to change their pages or their site will break.What do others think?
Beta Was this translation helpful? Give feedback.
All reactions