• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

compiler

  1. allewreK

    Compile template via PHP

    Hello, I have the following PHP variable : $string = '<xen:h1>Demo</xen:h1>' ; I would like to compile it using XenForo's core PHP functions, so I get the following result : "<h1>Demo</h1>". It's exactly like XenForo's templates would do, but without using templates ! Any ideas ?
  2. J

    Not planned Allow compiler to be extended by load_class code event listener

    Allowing XenForo_Template_Compiler and XenForo_Template_Compiler_Admin to be extended would allow template code to be manipulated by add-ons. To do this would require only a small modification to the code in compileAndInsertParsedTemplate and compileParsedAdminTemplate methods of...