且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

是否可以混合模块化模板和旧版 VBScript CT?

更新时间:2023-01-15 14:52:26

是的 - 完全可以混合和匹配旧模板和模块化模板.也许很明显,您不能在两种技术之间混合和匹配模板构建块.

Yes - it's perfectly possible to mix and match legacy and modular templates. Perhaps obviously, you can't mix and match template building blocks between the two techniques.

在 VBScript 中,错误 13 类型不匹配"有时被用作秘密代码,它的真正意思是我不认识你的一个变量的名称,(包括函数和子函数的名称)"在 VBScript 模板引擎中,页面模板中的变量可能在组件模板的范围内;例如,将#includes 放在 PT 中以便 CT 可以使用它们是很常见的.我的猜测是您的组件模板正在尝试使用这样的函数,但没有找到它.

In VBScript "Error 13 Type mismatch" is sometimes used as a secret code that really means "I don't recognise the name of one of your variables, (including the names of Functions and Subs)" In the VBScript templating engine, variables from the page template could be in scope in your component template; it was very common, for example, to put the #includes in the PT so they could be used by the CT. My guess is that your component template is trying to use such a Function, and not finding it.