se_current_view Tag
The se_current_view
tag provides various utilities to retrieve information about the view currently being rendered. For example, it is capable of returning the current relative view path, as well as outputting <!-- START: -->
and <!-- END: -->
comments in a development environment.
#se_current_view
Tag
When used by itself, the se_current_view
tag will output the relative path of the view currently being rendered:
1{{# Output the relative path of the current view. #}}
2{{ se_current_view /}}
#se_current_view:start
Tag
The se_current_view:start
tag will output a <!-- START: -->
HTML comment with the current relative view path. This tag does nothing when the site is in production mode.
1{{ se_current_view:start /}}
#se_current_view:end
Tag
The se_current_view:end
tag will output a <!-- END: -->
HTML comment with the current relative view path. This tag does nothing when the site is in production mode.
1{{ se_current_view:end /}}
#se_current_view:wrap
Tag
The se_current_view:wrap
tag will is a helper tag that combines the se_current_view:start
and se_current_view:end
functionality. This tag is intended to be used as a tag pair, and will wrap the contents of the tag in <!-- START --><!-- END -->
HTML comments.
This tag does nothing when the site is in production mode.
1{{ se_current_view:wrap }}
2 Other template code here.
3{{ /se_current_view:wrap }}