Skip to content
Browse files

LinkStyle requires HREF

  • Loading branch information...
1 parent 2cc26e1 commit 8d506cc675173ba44c80745b327df4ab5ab0b140 @daaku committed Apr 26, 2012
Showing with 7 additions and 0 deletions.
  1. +7 −0 helper_link_style.go
View
7 helper_link_style.go
@@ -1,10 +1,17 @@
package h
+import (
+ "errors"
+)
+
type LinkStyle struct {
HREF string
}
func (l *LinkStyle) HTML() (HTML, error) {
+ if l.HREF == "" {
+ return nil, errors.New("Missing HREF in LinkStyle.")
+ }
return &Link{
Type: "text/css",
Rel: "stylesheet",

0 comments on commit 8d506cc

Please sign in to comment.
Something went wrong with that request. Please try again.