Umbraco Juno, XsltExtension attribute (now also searches in assemblies, not only app_code)


/ Published in: C#
Save to your folder(s)

Currently the XsltExtension attribute will only work when the class is placed in the app_code folder, in umbraco Juno, we'll also look at types in assemblies, so no more need to update the /config/xsltExtensions.config but simply mark class with the attribute


Copy this code and paste it in your HTML
  1. [XsltExtension(Namespace="myAlias")]
  2. public class SomeTest
  3. {
  4. public static string HelloWorld(string who)
  5. {
  6. return "Hello " + who;
  7. }
  8. }

URL: http://umbraco.org

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.