Documentation > CMS Template API Library > Out > Wrap(String,String)

Wrap

Passes the output of this render to another asset for further rendering. This is marked obsolete, but might still be appropriate in environments where a VBScript wrapper is wrapping a C# template.

public System.Void Wrap(String,String)

Parameters

NameDescriptionType
assetPath The asset to render next System.String
token The name of the name of the content field being passed on to the asset for further rendering System.String

Code Example

C#

Sample:
<%= Out.Wrap["page_body"] %>

Connect with Crownpeak