[#assign script]
[#if user??]
[@NotificationList receiverId=user.id limit=8; list]
[#assign notifiList = list/]
[#list list as notifi]
${notifi.content}
[/#list]
[/@NotificationList]
[/#if]
[/#assign]
[#if notifiList??]
{"count":${notifiList?size},"content":"${script?js_string}"}
[#else]
{"count":0}
[/#if]