10
0
mirror of https://github.com/LCPQ/QUESTDB_website.git synced 2024-07-04 02:16:11 +02:00
QUESTDB_website/layouts/shortcodes/getDataFilesName.html

11 lines
240 B
HTML
Raw Normal View History

<script>
{{- $files := readDir "/static/data" }}
{{- $list := slice }}
function getDataFilesName(){
{{- range $files }}
{{- $list = $list | append .Name }}
{{- end }}
var files=JSON.parse({{ jsonify $list }})
return files
}
</script>