/app/.taglib/m.go

http://github.com/sut-go/gon · Go · 20 lines · 13 code · 4 blank · 3 comment · 1 complexity · 32567c1217a6217f31bf5d2549671673 MD5 · raw file

  1. package taglib
  2. type Namespace string
  3. type MyTagLib struct {
  4. Namespace "m"
  5. AppContext
  6. Writer
  7. }
  8. //
  9. // <m:test/>
  10. //
  11. func (m *MyTagLib) Test(b Body, attr Attributes) {
  12. m.Write("this is my tag lib.")
  13. b.call()
  14. for k,v := range attr {
  15. }
  16. }