Include path or directory #406
Replies: 2 comments
-
iex(1)> Kuddle.decode("""
...(1)> @include "/config.d/*"
...(1)> """)
{:ok,
[
%Kuddle.Node{
name: "@include",
annotations: [],
attributes: [
%Kuddle.Value{
value: "/config.d/*",
annotations: [],
type: :string,
format: :plain
}
],
children: nil
}
], []} Yes? You can technically do that as evidenced by me parsing it. From a security standpoint: that is a dangerous feature to include willy-nilly. EDIT: |
Beta Was this translation helpful? Give feedback.
-
To expand on this: KDL is not necessarily consumed from files, and different applications may want different semantics for their |
Beta Was this translation helpful? Give feedback.
-
Is it possible to add support for include files?
A directory
@include "/config.d/*"
A single file
@include "/extra.kdl"
Beta Was this translation helpful? Give feedback.
All reactions