agrath
860a33d9b3
Changed return type of Library.StripHtml to be HtmlString to facilitate partial strips feature still returning HTML and not wanting to encode the result
2011-08-07 14:07:09 -12:00
agrath
9d996aaf43
More @Library.Truncate parser fixes
2011-07-31 16:27:43 -12:00
agrath
13e5e5a8df
Fixed a bug in @Library.Truncate regarding attempting to close tags which were not open when the truncation occurred before any tags had been opened.
2011-07-31 11:16:45 -12:00
agrath@gmail.com
d9dc90090b
Changed @Library.MediaById(.) to return a DynamicMedia again so that specific media functionality can be added. DynamicMedia is just an empty subclass of DynamicNode currently
2011-07-11 11:27:31 -12:00
agrath@gmail.com
8ab1c11bd1
Made @Library.NodeById and @Library.MediaById DynamicNull safe, will return DynamicNull instead of 'Cannot instantiate a DynamicNode without an id'
2011-07-03 18:31:47 -12:00
agrath@gmail.com
49a0c8a11a
Changed return type of @Library.If to IHtmlString so that you can return HTML with it
2011-07-02 17:27:27 -12:00
agrath@gmail.com
8435067e98
Added overload to @Library.If for trueValue only
2011-06-30 11:56:16 -12:00
agrath@gmail.com
56e9cdb045
Added overloads to @Library.Truncate and @Library.StripHtml for DynamicNull to prevent errors when properties may not exist
2011-06-27 16:52:04 -12:00
agrath@gmail.com
ba8d8f8787
Changed @Library methods which return Dynamic* types to return type dynamic as methods on DynamicNodeList etc wouldn't work due to the type not being dynamic. Because @Model.NodeById got moved to @Library.NodeById and @Model is dynamic, this problem didn't exist before
2011-06-27 12:45:17 -12:00
agrath@gmail.com
0b47da8d41
Added @Library.Truncate to simulate string.left but not error when string is < length and be html tag aware. Optionally adds elipsis to end of strings
2011-06-26 11:26:02 -12:00
agrath@gmail.com
dc32f500ae
Added @Library.StripHtml to remove HTML tags from a string
2011-06-26 09:51:46 -12:00
agrath@gmail.com
c63b58612d
Renamed a variable on one of the overloads of @Library.Wrap and changed the behaviour of Visible so that it applies at render time, not tag creation time instead of returning null, this will enable chaining for invisible tags as well as being able to change your mind about whether the tag should render or not
2011-06-20 11:11:18 -02:00
agrath@gmail.com
ee57f4c449
Adds pageName attribute to DynamicNode
...
Rename NodeById to NodesById when dealing with multiple parameters
Fixes work item 30290 : Strip - in element and attribute names for DynamicXml
2011-06-13 15:21:16 -02:00
agrath@gmail.com
2c22bea92f
Renamed inconsistently named multiple NodeById methods
2011-06-13 12:59:36 -02:00
agrath@gmail.com
fbe150c1ce
Fixed a stack overflow in Wrap
2011-06-13 08:39:32 -02:00
agrath@gmail.com
b79586b4d7
Added new methods to HtmlTagWrapper: AddChild(TagWrapperBase [text or node]), AddChild(string), AddChildAt, RemoveChildAt, ClearChildren
...
Added new overloads to Library.Wrap - Adding children in one call and applying predicate check (bool - use @Model.Where() to return a bool)
Added new DynamicNode.Where overload that doesn't ternary text and just returns true/false (same as Element.Match in prototypejs)
2011-06-13 07:01:04 -02:00
agrath@gmail.com
0cc7799797
HtmlTagWrapper don't write if empty, class methods, attribute methods
2011-06-12 20:12:52 -02:00
agrath@gmail.com
019141c042
Added Anonymous property collections to HtmlTagWrapper
2011-06-12 19:06:09 -02:00
agrath@gmail.com
942a3c3d72
HtmlTagWrapper, a new class to emit content wrapped in HTML tags. Similar to a cross between HtmlGenericControl and Webforms control and Razor HTML helpers.
...
First commit - internal attributes, classes, children and single tag wrapping.
Todo: don't write if empty, class methods, attribute methods, anonymous attribute parsing
2011-06-12 15:03:38 -02:00
agrath@gmail.com
11b64ccd0d
Fixed an issue with parent recursion and an ArgumentException being thrown when I really want null if no parent
...
Added DynamicNode.Where to enable string predicate parsing IIF
Added overloads to DynamicXml which take an xml string and a XPathNodeIterator
Added If method to @Library to make ternaries easier to read in a Razor template (no need for extra brackets)
Added ToDynamicXml overload methods for XPathNodeIterator and XElement to @Library
2011-06-12 13:34:15 -02:00
agrath@gmail.com
1f6cc18ba4
Clarified exceptions when using NodeById and MediaById and passing empty strings, e.g. if your source came from @Parameter
2011-06-12 12:17:00 -02:00
agrath@gmail.com
23145b9981
Added @Library.Concatenate and @Library.Join
2011-06-12 12:09:59 -02:00
agrath@gmail.com
ce4763a956
Added @Library.Coalesce
2011-06-12 12:00:05 -02:00
agrath@gmail.com
0ea4e2f891
Added IsHelpers to DynamicXml
...
Added As<T>() [ return (item as T); ] to @Library
Added ToDynamicXml(string) to @Library
2011-06-12 11:50:35 -02:00
agrath@gmail.com
f2d8363556
Added IsHelper methods back into DynamicNode after I accidentally removed them while refactoring
...
Added new IsHelper methods for IsModZero, IsNotModZero, IsPosition, IsNotPosition, IsNotFirst, IsNotLast
Added .Count to DynamicXML
Fixed Media .Url and .NiceUrl to bring back umbracoFile
Moved MediaById and NodeById implementations to RazorLibraryCore and deprecated original methods with redirection
Fixed parsing issue with ExamineBackedMedia XPathNodeIterator cast method
2011-06-12 08:23:10 -02:00
agrath@gmail.com
cd13f8de55
Can't change the web.config for a 4.7.x release, redid implementation to not require web.config change
2011-05-21 14:47:57 -12:00
agrath@gmail.com
6a0dfc2c11
Razor @Library empty implementation
2011-05-21 14:34:46 -12:00