-
Notifications
You must be signed in to change notification settings - Fork 129
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
Add support for ASP.NET .cshtml templates #22
Conversation
Do you have a sample file so that we can add a test case? |
Hi, I have added the cshtml support to the extractor (cshtml: 'html',). And used it in a partial view of my project. It works as desired. report.cshtml:
Do you need a project, a normal view file or is the partial view file enough? regards |
The file you just specified is plain HTML. Does ASP.NET have any special markup or tags? If so, we'll need a sample with that. |
I have added the layout page as exmaple. There is a little bit of the Razor syntax inside. regards
|
I can confirm that this fix is suitable for ASP.NET MVC layout files. Sample file: @using MyApp.tools
@model ApplicationData
<!DOCTYPE html>
<html id="ng-app" ng-app="myApp">
<head>
<meta charset="utf-8">
<title>@Model.BrowserTitle</title>
@Html.Action("JavaScriptThirdPartyLibraries")
@Html.Action("CSSFiles")
@if (!string.IsNullOrEmpty(Model.BrandingCss))
{
<link href='@Url.GetHashedUrl(Model.BrandingCss)' rel="stylesheet" media="screen">
}
<script src='@Url.GetHashedUrl("controller/ContactController.js")' type="text/javascript"></script>
<script src='@Url.GetHashedUrl("script/translations.js")' type="text/javascript"></script>
</head>
<body>
@* Server side comment *@
<div class="container" ng-controller="contactController">
<div class="row-fluid">
<div class="panel-content panel-padding clearfix">
<h1 translate>Contact Us</h1>
<p translate>We've worked hard to make the <a ng-click="FAQ()">FAQs</a> as helpful as possible. Please check our FAQ as we may have an answer for you, before you reach out to our Customer Support team.</p>
<h4 translate>Still can't find the answer?</h4>
<p><a href="mailto:[email protected]" translate>Send us an email</a></p>
<h4 translate>Hours of Operation</h4>
<p translate>8:00 am - 5:00 pm PT, Weekdays</p>
<h4 translate>Email Response Time</h4>
<p translate>We do our best to respond to email inquiries within <strong>3 business days</strong>, although this can vary when we're experiencing higher than normal volume.</p>
</div>
</div>
</div>
</body> |
Great, now we'll just need to turn this into a test case and it can go in. |
Hi, Is this will be pulled into the main branch? |
No description provided.