Eve Attributes in View Engine
The following table summarizes all the tag attributes that the view engine is using. Any other attributes are used by extensions.
Attribute | Description |
eve-renderbody
|
Applicable only in Master view. Defines the place for the page view inside the master view. |
eve-renderinstead
|
Defines that the content should be placed in place of the tag. |
eve-renderinto
|
Defines that the content should be placed at the end of the current tag content. |
eve-partial
|
Defines tha partial view names that should be rendered for the tag. |
eve-partialmodel
|
Defines the databinding path on the current view's model, that should be passed for the partial view. Applicable only with the eve-partial attribute. |
eve-section
|
Defines a placeholder for a section content. |
eve-sectioncontentfor
|
Defines that the current tag (or its conent, see below) is a content for a section. |
eve-renderonlycontent
|
Defines that only the content of the current tag should be rendered as section content. Applicable only for sections. |
Eve Attributes in default Extensions
The following table summarizes all the tag attributes that the view engine is using. Any other attributes are used by extensions.
Attribute | Description |
eve-eval
|
Databinding of the model's value to the html tag. The value is determined based on the attribute value as a path to the object's structure. Opt-in:
public static IDocument ProcessEvals(this IDocument document, object Model) |
eve-viewbag
|
Databinding of the ViewBag's value to the html tag. The value is determined based on the attribute value as a path to the object's structure. Opt-in:
public static IDocumentHelper<T> ProcessViewBag<T>(this IDocumentHelper<T> documentHelper, ViewContext viewContext) where T : IDocument |
eve-local
|
inserts the localized value of a string from the defined resource manager. Localization key is the attribute's value. Opt-in:
public static IDocumentHelper<T> ProcessLocals<T>(this IDocumentHelper<T> documentHelper, ResourceManager resourceManager, CultureInfo culture) where T : IDocument |