s:list

Loop over files in a folder.

INPUT
<!-- let's list our blog posts -->
<s:list folder="blog/">
    \<s:put>@s: path\</s:put> <br/>
</s:list>
OUTPUT
blog/test.md
blog/why-sunsed-rocks.md
blog/this-is-awesome.md
☼ ☼ ☼ anotomy ☼ ☼ ☼
folder=""  

The folder location.

hidden=""  allow-hidden=""  
p. Use this attribute to include hidden files.
recursive=""  
p. List recursively (all files inside sub-folders and sub-sub-folders ...).
ascending=""  a-z=""  
p. Sort ascending.
descending=""  z-a=""  
p. Sort descending
sort=""  sort-by=""  
p. Sort by a specific metadata. For example to sort by title in ascending order you can write:
EXAMPLE
<s:list folder="blog" sort="title" ascending>
    <s:put>@title</s:put> <br/>
</s:list>
@...

Any metadata set by you or other contributors.

EXAMPLE
{{@title}} => file title.
{{@description}} => file description
@s: path
EXAMPLE
blog/my-blog-post.sunsed
@s: url path
EXAMPLE
blog/my-blog-post
@s: name
EXAMPLE
my-blog-post.sunsed
@s: name without extension
EXAMPLE
my-blog-post
@s: name friendly
EXAMPLE
my blog post
@s: hidden?
EXAMPLE
#false
@s: md5 checksum
EXAMPLE
97565d1dc97be2e579c0fb68bccb8793
@s: number of words
EXAMPLE
58 
@s: number of chars
EXAMPLE
315
@s: published?

Indicates if the file is considered published. SunSed looks at different metadata like publish-date to try to guess if a page is published or not.

EXAMPLE
#true