Add shortcut to Scratch from shortcode

This commit is contained in:
bep
2015-04-19 14:50:24 +02:00
parent bef25432d1
commit be01f8430e
2 changed files with 4 additions and 1 deletions

View File

@@ -42,6 +42,10 @@ func (scp *ShortcodeWithPage) RelRef(ref string) (string, error) {
return scp.Page.RelRef(ref)
}
func (scp *ShortcodeWithPage) Scratch() *Scratch {
return scp.Page.Scratch()
}
func (scp *ShortcodeWithPage) Get(key interface{}) interface{} {
if reflect.ValueOf(scp.Params).Len() == 0 {
return nil