Default slug/url format

How to customize default slug / url format.

for example, insteand of /home I want it to be /home.html or /home/ with a trailing slash.

How to customize it without having to create slug variable manually for each page ?

So I saw the append_url_extension options, but it doesn’t works if I want to append a final / on some urls, how to append trailing / ?