As far as I can see, there is currently not a general way to get access to a list of available assets or check for existence of a specific asset (for example an image) from the templates. I think it is not in the scope of the templating engine to provide such mechanism, as in a webserver environment, models and variables are provided by the web server to the templates, but in a static site generator, it should be the responsibility of the site generator to provide it.
As far as I can see, there is currently not a general way to get access to a list of available assets or check for existence of a specific asset (for example an image) from the templates. I think it is not in the scope of the templating engine to provide such mechanism, as in a webserver environment, models and variables are provided by the web server to the templates, but in a static site generator, it should be the responsibility of the site generator to provide it.