@AddProcessData("resourcepath", "/DesktopModules/DNNrocket/api/App_LocalResources/")
INJECT TEST
[INJECT:appthemesystem,injecttest1.cshtml]
```
Example sub-template 1:
```
@inherits RocketPortal.Components.RocketPortalTokens
@AddProcessData("resourcepath", "/DesktopModules/DNNrocket/api/App_LocalResources/")
INJECT TEST 1
```
Only the text after the inject token is included.
It is expected that all data objects required will be included in the calling template.
Example sub-template 2:
```
@inherits DNNrocketAPI.render.DNNrocketTokens
@AddProcessData("resourcepath", "/DesktopModules/DNNrocket/images/App_LocalResources/")
@{
var appTheme = (AppThemeLimpet)Model.GetDataObject("apptheme");
}
@{
if (appTheme != null)
{
var x = "Example";
}
}
INJECT TEST 1
```
The above example shows how razor code can be included in the sub-template.
Circular references to sub-templates will display an error on the output page.
Templates that do not exist will show the inject token on the output page.