hughbe / html-generator Goto Github PK
View Code? Open in Web Editor NEWA library that makes it easy to generate HTML files from C# code
License: MIT License
A library that makes it easy to generate HTML files from C# code
License: MIT License
This requires allowing HtmlObject to be extended externally
public void AddFirst(HtmlElement element);
public void AddFirst(HtmlAttribute attribute);
public void AddFirst(HtmlObject attribute);
Indent smartly, depending on inner text, previous and next content
HTML pages look bad without styles. We should add a way of adding styles, both at the level of the HTML head or element to increase the functionality of this library.
Make sure old linked list works
See work in 2.0 branch
See #4
public class HtmlElement : IEquatable<HtmlElement>
{
public void Equals(object other);
public void Equals(HtmElement element);
}
e.g. <p>Inner text <a href="url">url</a> more inner text</p>
public static HtmlElement Parse(string text);
Support test library
public void RemoveFromParent();
public bool HasElement(string tag);
public bool HasAttribute(string tag);
e.g. <p>abc<p>
JavaScript adds to the functionality of HTML pages.
We should add support for the JavaScript tag to enhance the quality of this library.
Is there any table generation sample code ?
public void AddAfterSelf(HtmlAttribute attribute);
public void AddAfterSelf(HtmlElement element);
public void AddAfterSelf(HtmlObject object);
public void AddBeforeSelf(HtmlAttribute attribute);
public void AddBeforeSelf(HtmlElement element);
public void AddBeforeSelf(HtmlObject object);
Requires #23
public class HtmlAttribute: IEquatable<HtmlAttribute>
{
public void Equals(object other);
public void Equals(HtmlAttribute attribute);
}
public void SetAttributeValue(string attribute, string value);
e.g. <tag attribute=value>
e.g. <tag attribute='value'>
Generic extension methods!
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.