Yang Jun
Yang Jun
It's related to a functionality to load partial templates via `require.resolve`, we'll have an option to remove this functionality in the next major release. Need more discussion on this. There's...
You have to set it to globals for access in `render`. That's intended and thus different from `include`. I guess maybe we shouldn't deprecate `include` as we don't have plans...
Actually in my local shopify/liquid, it yields an error: ``` liquid/lib/liquid/standardfilters.rb:681:in `date': wrong number of arguments (given 1, expected 2) (ArgumentError) ``` But I do think it's better to output...
> Date.toString() I find this approach is not feasible for `TimezoneDate`. Now I'm trying to set the default format string to `'%A, %B %-e, %Y at %-l:%M %P %z'` when...
Unfortunately no. But I agree this would be a good feature, given all the discussions I see here: https://github.com/Shopify/liquid/issues/236 While the implementation would be changing the fundamental syntax, expect this...
We have problem in JavaScript that `Date` doesn't support format string. We'll need localizations for this purpose, I'm thinking that we can create a separate project to port a strftime...
Yes, you're right. We can customize locale date/time string in JavaScript, but not as flexible as in strftime. `Intl.DateTimeFormat` and `.toLocaleDateString()` both support a format options parameter which contains something...
Makes sense. Thank you @prassie for the clarification.
weekday and months are now locale specific, details please check: https://liquidjs.com/filters/date.html
如果根元素是 fragment,是不能反解的。fragment 主要解决是多层组件嵌套中,可能带来较多不必要的标签。但是通常根组件只有一个。所以,根组件就别 fragment 了。 考虑在 san-ssr 里对这样的 case 报 warning 出来。有明确且合理的需求的情况,请重新打开本 issue。