mirror of
https://github.com/kovetskiy/mark.git
synced 2025-04-24 05:42:40 +08:00
fix #74 meta now knows about Include directives
This commit is contained in:
parent
bf4bbbe20a
commit
b17a955ec7
@ -17,6 +17,7 @@ const (
|
|||||||
HeaderLayout = `Layout`
|
HeaderLayout = `Layout`
|
||||||
HeaderAttachment = `Attachment`
|
HeaderAttachment = `Attachment`
|
||||||
HeaderLabel = `Label`
|
HeaderLabel = `Label`
|
||||||
|
HeaderInclude = `Include`
|
||||||
)
|
)
|
||||||
|
|
||||||
type Meta struct {
|
type Meta struct {
|
||||||
@ -95,6 +96,10 @@ func ExtractMeta(data []byte) (*Meta, []byte, error) {
|
|||||||
case HeaderLabel:
|
case HeaderLabel:
|
||||||
meta.Labels = append(meta.Labels, value)
|
meta.Labels = append(meta.Labels, value)
|
||||||
|
|
||||||
|
case HeaderInclude:
|
||||||
|
// Includes are parsed by a different func
|
||||||
|
continue
|
||||||
|
|
||||||
default:
|
default:
|
||||||
log.Errorf(
|
log.Errorf(
|
||||||
nil,
|
nil,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user