Configure the c/children tag to detect if there's an array or not.
This way,
{
t:"div",
c:
{
t:"p",
T:"Hello",
}
}
would be the same as
{
t:"div",
c: [
{
t:"p",
T:"Hello",
}
]
}
which would save a bunch of lines. Naturally, it'd only work if there was one children, but it should be an easy implementation. I'll probably do it Tuesday if I have time.
Todo:
Configure the
c
/children
tag to detect if there's an array or not.This way,
would be the same as
which would save a bunch of lines. Naturally, it'd only work if there was one children, but it should be an easy implementation. I'll probably do it Tuesday if I have time.