Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does "@addTagHelper" supported ? #81

Open
athinboy opened this issue Sep 29, 2021 · 4 comments
Open

Does "@addTagHelper" supported ? #81

athinboy opened this issue Sep 29, 2021 · 4 comments

Comments

@athinboy
Copy link

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
                });
@kftrans
Copy link

kftrans commented Oct 23, 2021

I would really like to use tag helpers with RazorEngineCore

@adoconnection
Copy link
Owner

Hi, unfortunately its not yet supported.

@kftrans
Copy link

kftrans commented Dec 12, 2021

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 :)

@adoconnection
Copy link
Owner

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants