TSS sheets store their file name
This commit is contained in:
parent
3ed8b70895
commit
24357bf19f
@ -5,6 +5,7 @@ import "git.tebibyte.media/tomo/tomo/event"
|
|||||||
import "git.tebibyte.media/tomo/backend/style"
|
import "git.tebibyte.media/tomo/backend/style"
|
||||||
|
|
||||||
type Sheet struct {
|
type Sheet struct {
|
||||||
|
Path string
|
||||||
Variables map[string] ValueList
|
Variables map[string] ValueList
|
||||||
Rules []Rule
|
Rules []Rule
|
||||||
flat bool
|
flat bool
|
||||||
@ -75,5 +76,6 @@ func LoadFile (name string) (*style.Style, event.Cookie, error) {
|
|||||||
|
|
||||||
sheet, err := Parse(Lex(name, file))
|
sheet, err := Parse(Lex(name, file))
|
||||||
if err != nil { return nil, nil, err }
|
if err != nil { return nil, nil, err }
|
||||||
|
sheet.Path = name
|
||||||
return BuildStyle(sheet)
|
return BuildStyle(sheet)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user