FilepublishFileName

Version: - string  

Summary

Returns the filename of the current file.

Settings

The value is generated automatically.

Examples

Outputting the template tag

@GetString("FilepublishFileName")

Check if tag has a value

@if(!string.IsNullOrWhiteSpace(GetString("FilepublishFileName"))) { @* Tag has value, so let's do something useful here. *@ }

Assign tag to a value for later use

@{ string storedTag = GetString("FilepublishFileName"); }

Outputting the template tag

<!--@FilepublishFileName-->

Check if string has a value

<!--@If Defined(@FilepublishFileName)--> Let's output this tag here: <strong><!--@FilepublishFileName--></strong> <!--@EndIf(@FilepublishFileName)-->