Actually, I met the same question as you asked in hexojs/hexo#2201.
I want to insert a code file as a collapsed spoiler and it seems difficult to deal with nesting macros. Is there any way to render something like below?
{% spoiler site_config.yml %}
{% codeblock test lang:yml %}
{% include _config.yml %}
{% endcodeblock %}
{% endspoiler %}