/// <summary>
		/// Processes the js generation view template - using the templateName
		/// to obtain the correct template, and using the specified <see cref="TextWriter"/>
		/// to output the result.
		/// </summary>
		/// <param name="templateName">Name of the template.</param>
		/// <param name="output">The output.</param>
		/// <param name="generatorInfo">The generator info.</param>
		/// <param name="context">The request context.</param>
		/// <param name="controller">The controller.</param>
		/// <param name="controllerContext">The controller context.</param>
		public abstract void GenerateJS(string templateName, TextWriter output, JSCodeGeneratorInfo generatorInfo, 
		                                IEngineContext context, IController controller, IControllerContext controllerContext);
		/// <summary>
		/// Implementors should return a generator instance if
		/// the view engine supports JS generation.
		/// </summary>
		/// <param name="generatorInfo">The generator info.</param>
		/// <param name="context">The request context.</param>
		/// <param name="controller">The controller.</param>
		/// <param name="controllerContext">The controller context.</param>
		/// <returns>A JS generator instance</returns>
		public abstract object CreateJSGenerator(JSCodeGeneratorInfo generatorInfo, IEngineContext context, IController controller,
		                                         IControllerContext controllerContext);
Exemple #3
0
 public override void GenerateJS(string templateName, TextWriter output, JSCodeGeneratorInfo generatorInfo,
     IEngineContext context, IController controller, IControllerContext controllerContext)
 {
     throw new NotImplementedException();
 }
Exemple #4
0
 public override object CreateJSGenerator(JSCodeGeneratorInfo generatorInfo, IEngineContext context,
     IController controller, IControllerContext controllerContext)
 {
     throw new NotImplementedException();
 }
Exemple #5
0
 /// <summary>
 /// Processes the js generation view template - using the templateName
 /// to obtain the correct template, and using the specified <see cref="TextWriter"/>
 /// to output the result.
 /// </summary>
 /// <param name="templateName">Name of the template.</param>
 /// <param name="output">The output.</param>
 /// <param name="generatorInfo">The generator info.</param>
 /// <param name="context">The request context.</param>
 /// <param name="controller">The controller.</param>
 /// <param name="controllerContext">The controller context.</param>
 public abstract void GenerateJS(string templateName, TextWriter output, JSCodeGeneratorInfo generatorInfo,
                                 IEngineContext context, IController controller, IControllerContext controllerContext);
Exemple #6
0
 /// <summary>
 /// Implementors should return a generator instance if
 /// the view engine supports JS generation.
 /// </summary>
 /// <param name="generatorInfo">The generator info.</param>
 /// <param name="context">The request context.</param>
 /// <param name="controller">The controller.</param>
 /// <param name="controllerContext">The controller context.</param>
 /// <returns>A JS generator instance</returns>
 public abstract object CreateJSGenerator(JSCodeGeneratorInfo generatorInfo, IEngineContext context, IController controller,
                                          IControllerContext controllerContext);
 public override object CreateJSGenerator(JSCodeGeneratorInfo generatorInfo, IEngineContext context, IController controller, IControllerContext controllerContext)
 {
     return null;
 }