Posted By

timgeyssens on 12/16/10


Tagged

umbraco


Versions (?)

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


 / Published in: C#
 

URL: http://umbraco.org

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

  1. [XsltExtension(Namespace="myAlias")]
  2. public class SomeTest
  3. {
  4. public static string HelloWorld(string who)
  5. {
  6. return "Hello " + who;
  7. }
  8. }

Report this snippet  

You need to login to post a comment.