RazorEngineCore icon indicating copy to clipboard operation
RazorEngineCore copied to clipboard

Does "@addTagHelper" supported ?

Open athinboy opened this issue 4 years ago • 4 comments

Does "@addTagHelper" supported ?Thanks!

            IRazorEngineCompiledTemplate<RazorEngineTemplateBase<JavaMapperConfig>> template
                = razorEngine.Compile<RazorEngineTemplateBase<JavaMapperConfig>>(templateContent, builder =>
                {
                    builder.AddAssemblyReferenceByName("System.Collections");
                    builder.AddAssemblyReference(typeof(CodeUtil)); // by type
                    builder.AddAssemblyReference(typeof(ReverseStrTagHelper)); // by type
                });

athinboy avatar Sep 29 '21 10:09 athinboy

I would really like to use tag helpers with RazorEngineCore

kftrans avatar Oct 23 '21 14:10 kftrans

Hi, unfortunately its not yet supported.

adoconnection avatar Oct 28 '21 16:10 adoconnection

Hey @adoconnection - do you have any tips on how this support might be added? I've been trying to debug through asp.net core sources to see exactly where taghelper functionality is crowbarred in, to see if I can do the same with razorenginecore, but am finding it to be quite a dense forest ... If you happen to have investigated and/or given some thought, I'd be glad for any leads :)

kftrans avatar Dec 12 '21 21:12 kftrans

@kftrans Hi, right now have ho idea :) I belive its similar to sections, like you did in PR. Im still experementing with it, but not much to be honest

adoconnection avatar Jan 14 '22 12:01 adoconnection