'------------------------------------------------------------------------------
' <auto-generated>
'     This code was generated by a tool.
'     Runtime Version:N.N.NNNNN.N
'
'     Changes to this file may cause incorrect behavior and will be lost if
'     the code is regenerated.
' </auto-generated>
'------------------------------------------------------------------------------

Option Strict Off
Option Explicit On

Imports System

Namespace TestOutput
Public Class ConditionalAttributes

#ExternalSource("ConditionalAttributes.vbhtml", 1)
Public Shared Function Link(ByVal url As String, text As String) As Template

#End ExternalSource
Return New Template(Sub (__razor_helper_writer)

#ExternalSource("ConditionalAttributes.vbhtml", 1)
                                                  


#End ExternalSource
WriteLiteralTo(__razor_helper_writer, "    ")

WriteLiteralTo(__razor_helper_writer, "<a")

WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=""", 59), Tuple.Create("""", 70) _
, Tuple.Create(Tuple.Create("", 66), Tuple.Create(Of System.Object, System.Int32)(url _
, 66), False) _
)

WriteLiteralTo(__razor_helper_writer, ">")


#ExternalSource("ConditionalAttributes.vbhtml", 2)
WriteTo(__razor_helper_writer, text)


#End ExternalSource
WriteLiteralTo(__razor_helper_writer, "</a> "&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10))


#ExternalSource("ConditionalAttributes.vbhtml", 3)


#End ExternalSource
End Sub)
End Function

Public Sub New()
MyBase.New
End Sub
Public Overrides Sub Execute()
WriteLiteral(" "&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10))


#ExternalSource("ConditionalAttributes.vbhtml",5)
     
    Dim ch = True
    Dim cls = "bar"


#End ExternalSource
WriteLiteral("    ")

WriteLiteral("<a")

WriteLiteral(" href=""Foo""")

WriteLiteral(" />"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10))

WriteLiteral("    ")

WriteLiteral("<p")

WriteAttribute("class", Tuple.Create(" class=""", 176), Tuple.Create("""", 188) _
, Tuple.Create(Tuple.Create("", 184), Tuple.Create(Of System.Object, System.Int32)(cls _
, 184), False) _
)

WriteLiteral(" />"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10))

WriteLiteral("    ")

WriteLiteral("<p")

WriteAttribute("class", Tuple.Create(" class=""", 201), Tuple.Create("""", 217) _
, Tuple.Create(Tuple.Create("", 209), Tuple.Create("foo", 209), True) _
, Tuple.Create(Tuple.Create(" ", 212), Tuple.Create(Of System.Object, System.Int32)(cls _
, 213), False) _
)

WriteLiteral(" />"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10))

WriteLiteral("    ")

WriteLiteral("<p")

WriteAttribute("class", Tuple.Create(" class=""", 230), Tuple.Create("""", 246) _
, Tuple.Create(Tuple.Create("", 238), Tuple.Create(Of System.Object, System.Int32)(cls _
, 238), False) _
, Tuple.Create(Tuple.Create(" ", 242), Tuple.Create("foo", 243), True) _
)

WriteLiteral(" />"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10))

WriteLiteral("    ")

WriteLiteral("<input")

WriteLiteral(" type=""checkbox""")

WriteAttribute("checked", Tuple.Create(" checked=""", 279), Tuple.Create("""", 292) _
, Tuple.Create(Tuple.Create("", 289), Tuple.Create(Of System.Object, System.Int32)(ch _
, 289), False) _
)

WriteLiteral(" />"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10))

WriteLiteral("    ")

WriteLiteral("<input")

WriteLiteral(" type=""checkbox""")

WriteAttribute("checked", Tuple.Create(" checked=""", 325), Tuple.Create("""", 342) _
, Tuple.Create(Tuple.Create("", 335), Tuple.Create("foo", 335), True) _
, Tuple.Create(Tuple.Create(" ", 338), Tuple.Create(Of System.Object, System.Int32)(ch _
, 339), False) _
)

WriteLiteral(" />"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10))

WriteLiteral("    ")

WriteLiteral("<p")

WriteAttribute("class", Tuple.Create(" class=""", 355), Tuple.Create("""", 401) _
, Tuple.Create(Tuple.Create("", 363), Tuple.Create(Of System.Object, System.Int32)(New Template(Sub (__razor_attribute_value_writer)


#ExternalSource("ConditionalAttributes.vbhtml",14)
                If cls IsNot Nothing Then 

#End ExternalSource

#ExternalSource("ConditionalAttributes.vbhtml",14)
   WriteTo(__razor_attribute_value_writer, cls)


#End ExternalSource

#ExternalSource("ConditionalAttributes.vbhtml",14)
                                               End If

#End ExternalSource
End Sub), 363), False) _
)

WriteLiteral(" />"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10))

WriteLiteral("    ")

WriteLiteral("<a")

WriteAttribute("href", Tuple.Create(" href=""", 414), Tuple.Create("""", 426) _
, Tuple.Create(Tuple.Create("", 421), Tuple.Create(Of System.Object, System.Int32)(Href("~/Foo") _
, 421), False) _
)

WriteLiteral(" />"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10))


#ExternalSource("ConditionalAttributes.vbhtml",16)


#End ExternalSource
End Sub
End Class
End Namespace
