diff --git a/assets/binary.go b/assets/binary.go index 4c07cde9..c440b980 100644 --- a/assets/binary.go +++ b/assets/binary.go @@ -157,7 +157,7 @@ func templatesActionsTmpl() (*asset, error) { return a, nil } -var _templatesBaseTmpl = []byte("\x1f\x8b\x08\x00\x00\x09\x6e\x88\x00\xff\xb4\x57\xdf\x6f\xdb\x36\x10\x7e\x1f\xb0\xff\x81\x25\x06\xf8\x61\xb5\xe4\x76\xdb\x4b\x21\x79\xd8\xd2\x0e\x2b\xd0\x6e\x41\x9c\xa0\xd8\x93\x41\x4b\x67\x8b\x09\x45\x6a\x24\xe5\xc4\x08\xfc\xbf\xef\x28\x4a\xd6\x0f\xff\x88\x8d\x76\x0f\x71\x24\x8a\xfc\xee\xbb\xef\x8e\x77\x64\xf4\xea\xfd\xdf\x57\xb7\xff\x5c\x7f\x20\x99\xcd\xc5\xf4\xfb\xef\xa2\xfa\x3f\x89\x32\x60\xa9\x7b\x20\x91\xe5\x56\xc0\xf4\xf9\x39\xf8\x8b\xe5\xb0\xdd\x46\xa1\x1f\xa8\xbe\xe5\x60\x19\x91\x38\x1e\xd3\x35\x87\xc7\x42\x69\x4b\x49\xa2\xa4\x05\x69\x63\xfa\xc8\x53\x9b\xc5\x29\xac\x79\x02\xe3\xea\xe5\x35\xe1\x92\x5b\xce\xc4\xd8\x24\x4c\x40\xfc\x26\x98\x50\x8f\x24\xb8\x7c\x20\x99\x86\x65\x4c\x33\x6b\x0b\xf3\x2e\x0c\x97\x88\x63\x82\x95\x52\x2b\x01\xac\xe0\x26\x48\x54\x1e\x72\x44\xff\x75\xc9\x72\x2e\x36\xf1\x67\x66\x41\x23\xd8\x8f\x1f\x71\xd0\x50\xa2\x41\xc4\xd4\xd8\x8d\x00\x93\x01\xd8\x3d\xe4\xd1\x49\xe4\xc4\x98\x06\xf8\x46\x2d\x94\x55\xef\x7e\x9e\x4c\x5e\xff\x32\x99\x8c\x2a\xe0\x51\x0b\x3c\x22\x76\x53\x40\x3c\xb2\xf0\x64\xdd\xb2\x51\xc7\xd0\x90\x43\xed\xd3\xf3\x33\x09\xae\x94\x5c\xf2\x55\xf0\xdb\xc2\x28\x51\x5a\xb8\xbb\xf9\x44\xb6\xdb\x70\xbe\xe4\x02\x72\x26\xd9\x0a\x7d\x41\xe1\xb4\x64\xc2\x81\x86\x1e\x24\xc0\x47\xe7\x88\xb3\x80\x20\x7c\x49\x24\xec\xa0\x66\x6e\xca\xcc\xd9\x21\x94\x22\x98\x9b\x44\xa2\x6a\x61\x45\xa9\x5a\x32\x63\xcb\x83\x2b\x9a\xe9\x61\x3b\x1f\x67\x83\x4c\xfd\x97\x28\x6c\x52\x20\x5a\xa8\x74\xe3\x5d\x74\x43\xa0\x3d\x76\x94\xf2\x75\x6b\xe5\x07\x81\xce\xbf\x8b\x49\x70\xad\x31\xde\xaa\x34\x9f\x9c\x1a\xb5\x8d\x96\x79\x35\x8d\xd2\x66\x9c\x44\xac\x15\xa8\xfa\xb6\xdd\xd2\x1a\xb4\xc7\x86\xd4\x06\x49\x22\x98\x31\x31\x65\x89\xe5\x4a\x7a\x58\xf8\xb7\x85\x25\x29\x37\x6c\x21\x20\xdd\x2d\xa6\x84\xa7\x31\x2d\x90\xd5\x0e\x98\x44\xbc\xc1\xc9\xeb\x14\x1a\x73\x9f\x42\x55\x6e\xc7\xb4\x71\x82\x4e\x4d\xb9\x48\xb9\x86\xc4\x2a\xbd\x99\x33\xad\xd5\xe3\x5c\xc0\xd2\x46\x21\x6f\xd0\xa2\xb0\x15\xe2\x84\xa3\x21\x6b\xc5\x6a\xdc\xf2\x03\xfb\x7e\x79\xce\xaa\x00\x39\x96\xac\xc3\xfb\x0c\xe6\x9f\x41\x96\x74\x9a\xe3\x6f\x4b\xb1\x61\x58\xbf\x15\xd3\x03\xe2\x7b\x1d\x0f\xe5\x68\x95\x59\xa1\x63\x2d\x0c\xe0\xe3\xd1\x54\x6e\x25\xdf\x11\xf6\xc0\xcd\xf4\x3f\xcb\x95\xfa\x20\xab\xf0\xe0\x2c\xf7\xd6\xa2\xfe\x81\xbb\x80\x7c\xf6\xdb\x60\x2f\xf0\x3b\xed\x3a\x5b\xc0\x55\x23\x42\xc3\x56\xe1\xe3\xda\x4c\x93\x0c\xd6\x5a\xc9\xb9\xe6\xab\xac\x0a\x9d\xf3\xa1\x02\xe8\xd8\x28\xf6\xe3\x33\xd4\xae\x93\xf2\x83\xb8\x29\x29\x36\x63\xc3\x53\xe8\x06\xeb\x9c\x9d\x41\xc8\xe9\xbc\x69\x6c\x9d\xd8\x27\x2d\x44\x4f\xb5\x03\x2c\xbf\x6e\xd7\x9c\x9b\x82\x97\x6c\x9e\x06\x33\xec\x29\x7b\x9e\x24\x6d\x56\xec\x09\xd0\x1b\x6f\x13\xfe\x80\x98\xff\x4f\xde\xf7\x5c\xf8\xda\xf4\x3f\xe6\x6f\x27\x67\xc9\x70\x93\xb7\xc6\x3f\x9a\xf7\x5c\xf7\x34\xa9\x32\xc2\x85\xd7\x00\xd3\x49\x36\x60\xfd\x62\x78\x67\x18\x4d\xa4\x89\xd1\xf5\x0f\x7b\xd1\x8c\xb8\x2c\x4a\xeb\x7b\x24\x75\x3d\x92\x92\x42\xb0\x04\x32\x25\xb0\x79\xc4\xf4\xc3\x13\x24\x28\x1e\x61\x78\x52\xc8\xb1\xf3\xa5\x41\x10\x0c\x49\x38\x5f\xbe\x68\x8e\xb3\x36\xaa\xd4\x64\xc5\xed\x6b\x92\x83\x4e\x4a\x47\x88\x28\x4d\xcc\x5a\x36\xcb\x89\xfb\xc3\x54\x35\x06\x75\x43\xca\xc1\x20\x9b\xf6\x94\x39\x5a\x71\xdd\x19\xa6\xc7\xe4\x65\x31\x1e\xb9\x4d\x32\xe2\x17\xba\xdf\xb9\x6b\x91\x78\x12\xa8\x64\xc1\x5e\x5c\x30\x39\xed\x4c\xc2\x6e\xeb\x46\x3a\x54\x06\x99\x7f\x8c\x5a\x59\x08\xc5\xd2\xcb\xc8\xdd\xd5\x6b\xdc\x09\x63\xee\x01\x3a\xac\xee\xea\x81\x17\x08\xb5\x39\xda\x1b\xb3\x90\x63\x50\x31\x3e\x35\x4b\xb4\x1a\x74\xe7\x1c\xda\x8c\xc7\x7c\x13\x6a\xa5\x4a\x7b\x51\x9b\xfb\x54\x2f\x81\x27\x6e\xe7\x56\xcd\x59\x51\x74\x5c\xf3\x5f\x87\xae\x75\x3c\xeb\x3e\x36\xbb\x41\xad\x41\x0b\xb6\xa1\xd3\xf6\xa3\x3f\x03\x55\x07\x9e\xf6\xfc\xe5\x77\xd4\xae\x3f\x34\xcb\xad\x52\x62\xc1\x74\xe3\x45\xb7\x55\x1c\xf3\x7b\xc1\x92\x87\x0b\x0e\x25\xbf\x57\xd3\x7d\x19\x75\x4b\x8f\x9d\x41\x3a\xf5\xae\x92\xa3\xde\xeb\x02\xeb\x30\xa4\x63\x59\xe6\x0b\x40\x9a\x93\x81\x3c\xcd\x84\xa0\xad\x2a\x5d\xd4\xa8\x7f\xc8\x39\x19\xfe\x83\x42\x0f\x12\x22\xca\x19\xaf\x8d\xf7\xe0\xea\xcb\x03\xc2\xbd\x67\x78\xb7\xd8\x9d\x69\x1b\x3f\xac\x7a\x00\x49\xa7\x9d\x62\x7c\xeb\x46\x88\xbb\x98\xec\xfc\x89\xc2\x1a\xbd\x7a\x59\x2a\x65\x9b\x43\xeb\x0c\xf4\x1a\xcb\x2f\x6e\xc8\xcc\x03\x33\x7f\x62\x97\xca\x9d\xb6\x40\x13\xa9\xb0\x33\x80\xd6\x28\xd1\xe0\x3a\x92\xb0\x34\xdd\x18\xb7\x5e\xbb\xfb\x02\x9d\x5e\xb9\x81\x5d\x55\xc6\x22\x74\x29\x22\x56\xb5\xac\x5c\x54\x97\x8f\x8c\x25\x29\x67\xc6\x1b\x19\x77\xae\x04\x74\xda\x6d\x0d\xce\x5a\xd0\x88\x76\xb4\xb5\x7c\x41\x5c\xac\xae\x4b\xc1\xd6\xae\x78\xaa\x65\x1d\x96\x6f\xcd\xcc\x59\xad\x18\xf5\x3a\x56\x14\xee\x04\xaf\x5e\x5f\x8d\xc7\x64\x76\x75\xf3\xf1\xfa\x76\x46\xc6\x63\x1f\x1f\x93\x68\x5e\x58\x62\x74\xd2\xd1\x37\x95\xf7\x78\xdd\x11\xaa\x4c\x91\xb9\x86\xca\x3a\xbb\x67\x4f\xa1\xe0\x0b\x13\x62\x03\x09\xdf\x04\x6f\x83\x9f\xdc\x53\x70\x6f\xdc\x3e\xf5\x30\xfb\x90\x17\xde\xb6\xee\x0d\x52\xd6\xf9\x5b\x34\xff\xad\x71\xb1\x2e\x09\x9e\x30\xb7\x45\xf6\xb1\x4f\xc5\xf0\x5c\xbb\x19\xae\x3a\xcb\x60\xff\x6e\x57\x5f\xe9\xb0\xc0\xf9\x0b\xff\x7f\x01\x00\x00\xff\xff\xb0\xc7\xfe\x0f\x0a\x10\x00\x00") +var _templatesBaseTmpl = []byte("\x1f\x8b\x08\x00\x00\x09\x6e\x88\x00\xff\xb4\x57\xdf\x6f\xdb\x36\x10\x7e\x1f\xb0\xff\x81\x25\x06\xf8\x61\xb5\xe4\x76\xdb\x4b\x21\x79\xd8\xd2\x0e\x2b\xd0\x6e\x41\x9c\xa0\xd8\x93\x41\x4b\x67\x8b\x09\x45\x6a\x24\xe5\xc4\x08\xfc\xbf\xef\x28\x4a\xd6\x0f\xff\x88\x8d\x76\x0f\x71\x24\x8a\xfc\xee\xbb\xef\x8e\x77\x64\xf4\xea\xfd\xdf\x57\xb7\xff\x5c\x7f\x20\x99\xcd\xc5\xf4\xfb\xef\xa2\xfa\x3f\x89\x32\x60\xa9\x7b\x20\x91\xe5\x56\xc0\xf4\xf9\x39\xf8\x8b\xe5\xb0\xdd\x46\xa1\x1f\xa8\xbe\xe5\x60\x19\x91\x38\x1e\xd3\x35\x87\xc7\x42\x69\x4b\x49\xa2\xa4\x05\x69\x63\xfa\xc8\x53\x9b\xc5\x29\xac\x79\x02\xe3\xea\xe5\x35\xe1\x92\x5b\xce\xc4\xd8\x24\x4c\x40\xfc\x26\x98\x50\x8f\x24\xb8\x7c\x20\x99\x86\x65\x4c\x33\x6b\x0b\xf3\x2e\x0c\x97\x88\x63\x82\x95\x52\x2b\x01\xac\xe0\x26\x48\x54\x1e\x72\x44\xff\x75\xc9\x72\x2e\x36\xf1\x67\x66\x41\x23\xd8\x8f\x1f\x71\xd0\x50\xa2\x41\xc4\xd4\xd8\x8d\x00\x93\x01\xd8\x3d\xe4\xd1\x49\xe4\xc4\x98\x06\xf8\x46\x2d\x94\x55\xef\x7e\x9e\x4c\x5e\xff\x32\x99\x8c\x2a\xe0\x51\x0b\x3c\x22\x76\x53\x40\x3c\xb2\xf0\x64\xdd\xb2\x51\xc7\xd0\x90\x43\xed\xd3\xf3\x33\x09\xae\x94\x5c\xf2\x55\xf0\xdb\xc2\x28\x51\x5a\xb8\xbb\xf9\x44\xb6\xdb\x70\xbe\xe4\x02\x72\x26\xd9\x0a\x7d\x41\xe1\xb4\x64\xc2\x81\x86\x1e\x24\xc0\x47\xe7\x88\xb3\x80\x20\x7c\x49\x24\xec\xa0\x66\x6e\xca\xcc\xd9\x21\x94\x22\x98\x9b\x44\xa2\x6a\x61\x45\xa9\x5a\x72\x35\x9b\x1d\x5a\xd0\xcc\x0e\xdb\xe9\x38\x19\x64\xea\xbf\x44\x61\x93\x01\xd1\x42\xa5\x1b\xef\xa1\x1b\x02\xed\xa1\xa3\x94\xaf\x5b\x23\x3f\x08\xf4\xfd\x5d\x4c\x82\x6b\x8d\xe1\x56\xa5\xf9\xe4\xc4\xa8\x6d\xb4\xc4\xab\x69\x94\x36\xe3\x24\x62\xad\x3e\xd5\xb7\xed\x96\xd6\xa0\x3d\x36\xa4\x36\x48\x12\xc1\x8c\x89\x29\x4b\x2c\x57\xd2\xc3\xc2\xbf\x2d\x2c\x49\xb9\x61\x0b\x01\xe9\x6e\x31\x25\x3c\x8d\x69\x81\xac\x76\xc0\x24\xe2\x0d\x4e\x5e\x67\xd0\x98\xfb\x0c\xaa\x52\x3b\xa6\x8d\x13\x74\x6a\xca\x45\xca\x35\x24\x56\xe9\xcd\x9c\x69\xad\x1e\xe7\x02\x96\x36\x0a\x79\x83\x16\x85\xad\x10\x27\x1c\x0d\x59\x2b\x56\xe3\x96\x1f\xd8\xf7\xcb\x73\x56\x05\xc8\xb1\x64\x1d\xde\x67\x30\xff\x0c\xb2\xa4\xd3\x1c\x7f\x5b\x8a\x0d\xc3\xfa\xad\x98\x1e\x10\xdf\xeb\x78\x28\x45\xab\xc4\x0a\x1d\x6b\x61\x00\x1f\x8f\x66\x72\x2b\xf9\x8e\xb0\x07\x6e\xa6\xff\x59\xae\xd4\x07\x59\x85\x07\x67\xb9\xb7\x16\xf5\x0f\xdc\x04\xe4\xb3\xdf\x05\x7b\x81\xdf\x69\xd7\xd9\x01\xae\x18\x11\x1a\xb6\x0a\x1f\xd7\x66\x9a\x64\xb0\xd6\x4a\xce\x35\x5f\x65\x55\xe8\x9c\x0f\x15\x40\xc7\x46\xb1\x1f\x9f\xa1\x76\x9d\x94\x1f\xc4\x4d\x49\xb1\x19\x1b\x9e\x42\x37\x58\xe7\xec\x0c\x42\x4e\xe7\x4d\x63\xeb\xc4\x3e\x69\x21\x7a\xaa\x1d\x60\xf9\x75\xbb\xe6\xdc\x14\xbc\x64\xf3\x34\x98\x61\x4f\xd9\xf3\x24\x69\xb3\x62\x4f\x80\xde\x78\x9b\xf0\x07\xc4\xfc\x7f\xf2\xbe\xe7\xc2\xd7\xa6\xff\x31\x7f\x3b\x39\x4b\x86\x9b\xbc\x35\xfe\xd1\xbc\xe7\xba\xa7\x49\x95\x11\x2e\xbc\x06\x98\x4e\xb2\x01\xeb\x17\xc3\x3b\xc3\x68\x22\x4d\x8c\xae\x7f\xd8\x8b\x66\xc4\x65\x51\x5a\xdf\x22\xa9\x6b\x91\x94\x14\x82\x25\x90\x29\x81\xcd\x23\xa6\x1f\x9e\x20\x41\xf1\x08\xc3\x83\x42\x8e\x8d\x2f\x0d\x82\x60\x48\xc2\xf9\xf2\x45\x73\x9c\xb5\x51\xa5\x26\x2b\x6e\x5f\x93\x1c\x74\x52\x3a\x42\x44\x69\x62\xd6\xb2\x59\x4e\xdc\x1f\xa6\xaa\x31\xa8\x1b\x52\x0e\x06\xd9\xb4\xa7\xcc\xd1\x8a\xeb\x8e\x30\x3d\x26\x2f\x8b\xf1\xc8\x6d\x92\x11\xbf\xd0\xfd\xce\x5d\x8b\xc4\x83\x40\x25\x0b\xb6\xe2\x82\xc9\x69\x67\x12\x76\x5b\x37\xd2\xa1\x32\xc8\xfc\x63\xd4\xca\x42\x28\x96\x5e\x46\xee\xae\x5e\xe3\x0e\x18\x73\x0f\xd0\x61\x75\x57\x0f\xbc\x40\xa8\xcd\xd1\xde\x98\x85\x1c\x83\x8a\xf1\xa9\x59\xa2\xd5\xa0\x3b\xe7\xd0\x66\x3c\xe6\x9b\x50\x2b\x55\xda\x8b\xda\xdc\xa7\x7a\x09\x3c\x71\x3b\xb7\x6a\xce\x8a\xa2\xe3\x9a\xff\x3a\x74\xad\xe3\x59\xf7\xb1\xd9\x0d\x6a\x0d\x5a\xb0\x0d\x9d\xb6\x1f\xfd\x19\xa8\x3a\xf0\xb4\xc7\x2f\xbf\xa3\x76\xfd\xa1\x59\x6e\x95\x12\x0b\xa6\x1b\x2f\xba\xad\xe2\x98\xdf\x0b\x96\x3c\x5c\x70\x28\xf9\xbd\x9a\xee\xcb\xa8\x5b\x7a\xec\x0c\xd2\xa9\x77\x95\x1c\xf5\x5e\x17\x58\x87\x21\x1d\xcb\x32\x5f\x00\xd2\x9c\x0c\xe4\x69\x26\x04\x6d\x55\xe9\xa2\x46\xfd\x43\xce\xc9\xf0\x1f\x14\x7a\x90\x10\x51\xce\x78\x6d\xbc\x07\x57\xdf\x1d\x10\xee\x3d\xc3\xab\xc5\xee\x48\xdb\xf8\x61\xd5\x03\x48\x3a\xed\x14\xe3\x5b\x37\x42\xdc\xbd\x64\xe7\x4f\x14\xd6\xe8\xd5\xcb\x52\x29\xdb\x1c\x5a\x67\xa0\xd7\x58\x7e\x71\x43\x66\x1e\x98\xf9\x03\xbb\x54\xee\xb4\x05\x9a\x48\x85\x9d\x01\xb4\x46\x89\x06\xb7\x91\x84\xa5\xe9\xc6\xb8\xf5\xda\x5d\x17\xe8\xf4\xca\x0d\xec\xaa\x32\x16\xa1\x4b\x11\xb1\xaa\x65\xe5\xa2\xba\x7b\x64\x2c\x49\x39\x33\xde\xc8\xb8\x73\x23\xa0\xd3\x6e\x6b\x70\xd6\x82\x46\xb4\xa3\xad\xe5\x0b\xe2\x62\x75\x5d\x0a\xb6\x76\xc5\x53\x2d\xeb\xb0\x7c\x6b\x66\xce\x6a\xc5\xa8\xd7\xb1\xa2\x70\x27\x78\xf5\xfa\x6a\x3c\x26\xb3\xab\x9b\x8f\xd7\xb7\x33\x32\x1e\xfb\xf8\x98\x44\xf3\xc2\x12\xa3\x93\x8e\xbe\xa9\xbc\xc7\xdb\x8e\x50\x65\x8a\xcc\x35\x54\xd6\xd9\x3d\x7b\x0a\x05\x5f\x98\x10\x1b\x48\xf8\x26\x78\x1b\xfc\xe4\x9e\x82\x7b\xe3\xf6\xa9\x87\xd9\x87\xbc\xf0\xb2\x75\x6f\x90\xb2\xce\xdf\xa2\xf9\x6f\x8d\x8b\x75\x49\xf0\x84\xb9\x2d\xb2\x8f\x7d\x2a\x86\xe7\xda\xcd\x70\xd5\x59\x06\xfb\x77\xbb\xfa\x4a\x87\x05\xce\xdf\xf7\xff\x0b\x00\x00\xff\xff\x5e\xcf\xd7\xa0\x09\x10\x00\x00") func templatesBaseTmplBytes() ([]byte, error) { return bindataRead( @@ -172,7 +172,7 @@ func templatesBaseTmpl() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "templates/base.tmpl", size: 4106, mode: os.FileMode(438), modTime: time.Unix(1470234676, 0)} + info := bindataFileInfo{name: "templates/base.tmpl", size: 4105, mode: os.FileMode(438), modTime: time.Unix(1470343725, 0)} a := &asset{bytes: bytes, info: info} return a, nil } diff --git a/assets/embed/templates/base.tmpl b/assets/embed/templates/base.tmpl index cf45959e..3f182bfe 100644 --- a/assets/embed/templates/base.tmpl +++ b/assets/embed/templates/base.tmpl @@ -9,7 +9,7 @@ {{ if ne .Config.StyleSheet "" }} {{ end }} diff --git a/page/page.go b/page/page.go index 440d0e44..265f834a 100644 --- a/page/page.go +++ b/page/page.go @@ -76,8 +76,8 @@ func (p Page) PrintAsHTML(w http.ResponseWriter, templates ...string) (int, erro // execute the template if there aren't errors functions := template.FuncMap{ "Defined": variables.Defined, - "Safe": func(s string) template.HTML { - return template.HTML(s) + "CSS": func(s string) template.CSS { + return template.CSS(s) }, }