fix #312 Update peg dependency?

Close #313
$onContentRefresh for custom attributes

Close #314