mirror of
https://github.com/oen/liquid-template.git
synced 2026-07-22 05:40:24 +00:00
Final readme update
This commit is contained in:
parent
32d688c698
commit
bb6a78965f
1 changed files with 13 additions and 13 deletions
26
README.md
26
README.md
|
|
@ -71,24 +71,24 @@ The new `date` filter uses [date-fns](https://date-fns.org/) as library to handl
|
|||
|
||||
There are also some special words that can be used with this filter:
|
||||
|
||||
**"now"**
|
||||
`{{ "now" | date: "yyyy-MM-dd" }}`
|
||||
Use the date from `new Date` and formatted with the given format
|
||||
**"now"**<br/>
|
||||
`{{ "now" | date: "yyyy-MM-dd" }}`<br/>
|
||||
Use the date from `new Date` and formatted with the given format<br/>
|
||||
|
||||
|
||||
**"today"**
|
||||
`{{ "today" | date: "yyyy-MM-dd" }}`
|
||||
same as `now`
|
||||
**"today"**<br/>
|
||||
`{{ "today" | date: "yyyy-MM-dd" }}`<br/>
|
||||
same as `now`<br/>
|
||||
|
||||
|
||||
**"yesterday"**
|
||||
`{{ "yesterday" | date: "yyyy-MM-dd" }}`
|
||||
use the [`subDays`](https://date-fns.org/v2.21.3/docs/subDays) function to subtract `1` from `Date.now()` and formatted with the given format
|
||||
**"yesterday"**<br/>
|
||||
`{{ "yesterday" | date: "yyyy-MM-dd" }}`<br/>
|
||||
use the [`subDays`](https://date-fns.org/v2.21.3/docs/subDays) function to subtract `1` from `Date.now()` and formatted with the given format<br/>
|
||||
|
||||
|
||||
**"tomorrow"**
|
||||
`{{ "tomorrow" | date: "yyyy-MM-dd" }}`
|
||||
use the [`addDays`](https://date-fns.org/v2.21.3/docs/addDays) function to add `1` to `Date.now()` and formatted with the given format
|
||||
**"tomorrow"**<br/>
|
||||
`{{ "tomorrow" | date: "yyyy-MM-dd" }}`<br/>
|
||||
use the [`addDays`](https://date-fns.org/v2.21.3/docs/addDays) function to add `1` to `Date.now()` and formatted with the given format<br/>
|
||||
|
||||
|
||||
### `date` Default format
|
||||
|
|
@ -145,4 +145,4 @@ For now, this plugin just includes the basic version of LiquidJS, but I want to
|
|||
- [ ] Add autocomplete to the template folder, excluded folder settings
|
||||
- [ ] Implement a fuzzy finder for the autocomplete
|
||||
- [x] Implement/install a filter that allows you to write `{{ 1 | days_ago | date: default_date_format }}`
|
||||
- [ ] Parse a selected template string, something like you select `{{ "dQw4w9WgXcQ" | youtube_iframe }}` run a command and end up with the parsed result, in this case, the youtube iframe. (the `youtube_iframe` tag does not exist yet)
|
||||
- [ ] Parse a selected template string, something like you select `{{ "dQw4w9WgXcQ" | youtube_iframe }}` run a command and end up with the parsed result, in this case, the youtube iframe. (the `youtube_iframe` tag does not exist yet)
|
||||
|
|
|
|||
Loading…
Reference in a new issue