mirror of
https://github.com/LCPQ/QUESTDB_website.git
synced 2024-08-26 06:01:49 +02:00
14 lines
311 B
HTML
14 lines
311 B
HTML
<script>
|
|
{{- $files := readDir "/static/data" }}
|
|
{{- $list := slice }}
|
|
function getDataFilesName(){
|
|
{{- range $files }}
|
|
{{- $ext := path.Ext .Name}}
|
|
{{- if eq $ext ".dat" }}
|
|
{{- $list = $list | append .Name }}
|
|
{{- end }}
|
|
{{- end }}
|
|
var files=JSON.parse({{ jsonify $list }})
|
|
return files
|
|
}
|
|
</script> |