allow a render function via render attribute for each node