mirror of
https://github.com/sablierapp/sablier.git
synced 2025-12-21 13:23:03 +01:00
17 lines
326 B
Go
17 lines
326 B
Go
package theme
|
|
|
|
import "strings"
|
|
|
|
// List all the loaded themes
|
|
func (t *Themes) List() []string {
|
|
themes := make([]string, 0)
|
|
|
|
for _, template := range t.themes.Templates() {
|
|
if strings.HasSuffix(template.Name(), ".html") {
|
|
themes = append(themes, strings.TrimSuffix(template.Name(), ".html"))
|
|
}
|
|
}
|
|
|
|
return themes
|
|
}
|