Source

wikdNode / scripts / AttrsToChildren.groovy

The branch 'default' does not exist.
// @CacheScriptContent(true)
// @ExecutionModes({ON_SINGLE_NODE})

c.selecteds.each {
	it.attributes.names.eachWithIndex { an, idx ->
		def child = it.createChild(idx)
		if (an == 'note')
			child.note = it[an]
		else
			child.object = an
		child.details = it[an]
	}
	it.attributes.clear()
}