Skip to content

Instantly share code, notes, and snippets.

@mrstebo
Created March 27, 2017 21:10
Show Gist options
  • Select an option

  • Save mrstebo/4192278e7eb87bf75a87e17fc2c36ec1 to your computer and use it in GitHub Desktop.

Select an option

Save mrstebo/4192278e7eb87bf75a87e17fc2c36ec1 to your computer and use it in GitHub Desktop.
Classic ASP BodyContainer Component
<%
Class BodyContainer
Public Function Render
Dim filename : filename = Server.MapPath("/components/BodyContainer/Template.html")
Dim fso : Set fso = CreateObject("Scripting.FileSystemObject")
Dim fs : Set fs = fso.OpenTextFile(filename, 1)
If Not fs.AtEndOfStream Then Render = fs.ReadAll
Set fs = Nothing
Set fso = Nothing
End Function
End Class
%>
<h2>Body Container</h2>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment