mirror of
https://github.com/MontFerret/ferret.git
synced 2024-12-18 23:47:48 +02:00
e17ce5a3d5
* Added WAIT_STYLE and WAIT_NO_STYLE * Added WAIT_NO_STYLE and WAIT_NO_STYLE_ALL functions
16 lines
320 B
Go
16 lines
320 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))
|
|
}
|