mirror of
https://github.com/MontFerret/ferret.git
synced 2024-12-14 11:23:02 +02:00
18 lines
325 B
Go
18 lines
325 B
Go
package templates
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/MontFerret/ferret/pkg/drivers/cdp/eval"
|
|
"github.com/MontFerret/ferret/pkg/runtime/values"
|
|
)
|
|
|
|
func StyleRead(name values.String) string {
|
|
n := name.String()
|
|
return fmt.Sprintf(
|
|
`el.style[%s] != "" ? el.style[%s] : null`,
|
|
eval.ParamString(n),
|
|
eval.ParamString(n),
|
|
)
|
|
}
|