diff --git a/README.md b/README.md index 85b2703..cfbe925 100644 --- a/README.md +++ b/README.md @@ -115,6 +115,9 @@ Note: When using .vue files, the JavaScript output is cached between requests (i - `Options` - Vue options for the component in JavaScript format. Only used with simple in-line templates. - `SquashWS` - Boolean value (default true) indicating if all white space in HTML templates should be squashed (sequences of space, ``, ``, `` are replaced with a single space). + Events (server side): + - `PostBack(eventArgument)`- Raised when script in the Vue.js component calls `this.$options.PostBack(eventArgument)`. Note that the server control must have an `ID` attribute for this to be available. + - **App** Makes it easy to render a Vue.js application instance. @@ -126,6 +129,9 @@ Note: When using .vue files, the JavaScript output is cached between requests (i - `Mount` - Boolean value (default true) indicating if a `
` tag with a random id should be generated and the Vue instance mounted to this. - `SquashWS` - Boolean value (default true) indicating if all white space in HTML templates should be squashed (sequences of space, ``, ``, `` are replaced with a single space). + Events (server side): + - `PostBack(eventArgument)`- Raised when script in the Vue.js application calls `this.$options.PostBack(eventArgument)`. Note that the server control must have an `ID` attribute for this to be available. + - **ServerTemplate** diff --git a/src/Module1.vb b/src/Module1.vb index 488085b..1b80c34 100644 --- a/src/Module1.vb +++ b/src/Module1.vb @@ -2,20 +2,20 @@ Friend Module Module1 - Friend Function MakeVueOptions(content As String, prpFile As String, prpOptions As String, prpsquashWS As Boolean) As String + Friend Function MakeVueOptions(content As String, prpFile As String, prpOptions As String, prpsquashWS As Boolean, embedExtra As String) As String Dim ctx = System.Web.HttpContext.Current If String.IsNullOrEmpty(prpFile) Then REM In-line template If content.Length = 0 Then Throw New Exception("Template is empty") If content.StartsWith("