mumpitz / kudzuasp Goto Github PK
View Code? Open in Web Editor NEWAn event driven template engine for Classic ASP
An event driven template engine for Classic ASP
T_ENGINE.PathPrefix .... Error
I will try to create a Demo and create Snippets that help people use Kudzu.
Until i have a Wiki or other Documentation up and running, feel free to ask here.
As a very quick Demo, i've created these two Gists:
The ASP
https://gist.github.com/Mumpitz/8f3abea0fdf83104c35e7fbe2114110d
The HTML-Template
https://gist.github.com/Mumpitz/d0310ad7d8b3c855ac235d3b807f65b2
After upgrading to the latest version I experience the following error.
When I use a custom component that creates a child template engine I receive a VBScript error complaining of an invalid property. This occurs on lines 858 and 1095. I believe the parent property here references the parent engine itself.
When I changed lines from:
ME.Parent.ENGINE.ContentAppend sContent
To this:
ME.Parent.ContentAppend sContent
The inner template was correctly evaluated and the resulting content was properly added to the parent template engine.
In Line 832 of _kudzu.asp, the IIf Handler is set to Class CTPSubst
What would need to be CTPIIf
.
And then the Class CTPIIf
itself has a logical failure.
If the expression evaluates to false, Exit Sub
is triggered, instead of returning the third parameter.
Removing the Condition would be correct, right?
Hi, thanks a lot for this library, I need to maintaint an old system in Classic ASP and I want use this engine, there are a lot of components, but does not information about them.
How can we use this?
Case: a SELECT...CASE programming construct based upon a named value
CrLf: inserts one or more Carriage Return Linefeed pairs to HTML output
Cycle: cycles a variable through a series of values (used in iteration)
Decr: decrements a named value
Execute: executes another ASP page and inserts the content into the stream
Flush: flushes the output (implicitly invoked with Execute)
ForArray: iterates content over an array of values
ForEach: iterates content over a collection of values
IIf: includes content when a named value is true
IfTrue: includes content when a values is true
IfFalse: includes content if a value is false
Ignore: ignores the content completely (for prototyping)
Incr: increments a numeric value by one
Iterate: iterates using a named iterator assigned to the iterators collection
Record: evaluates and copies the enclosed content to a named value
Replace: replaces the content with a single named value
Profiler: computes the "end time," sets the named value and evaluates the content
SetValue: sets a named value with another value
Space: inserts one or more spaces into the output stream
Subst: perform multiple substitutions on the content
Tab: inserts one or more tab characters into the output stream
Tree: draws a tree of information using a named value that is of type TreeNode
UnSetValue: removes a value from the Values collection
Did any issues occur while transferring the repo?
I can imagine that github is not able to transfer the repo if i already own a fork of it. So if there were errors, i will delete my fork to be able to accept the repo.
I found Sourcecode at your website http://www.andrewfriedl.com/ that has the Version Number 1.2.5 and seems to be a bit more advanced then the version 1.6.0 here in the repo.
At least there is a Class CTPRandom
and Class CTemplateNode
has the additional Properties mIncluded
, Get Included
and Set IncludeNode
.
The Sub EvalNodeID changed to a Function and there are minifications to save some lines of code.
In 1.2.5's CTemplatenEngine::WriteOutput(sContent)
is ENGINE
not present as well as the Condition If Not mParent is Nothing Then
in CTemplateEngine::ContentFlush()
.
Are these missing by mistake?
The Line with libPathPush at the beginning was removed in 1.6.0?
Seems to be quite mixed up a bit. Would like to bring some light into the dark. ;)
The exclamation mark is not filtered out, so the eval will always fail.
I will fix it and create another Pull-Request.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.