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
Make sure old linked list works
Indent smartly, depending on inner text, previous and next content
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);
public void SetAttributeValue(string attribute, string value);
public static HtmlElement Parse(string text);
public void RemoveFromParent();
This requires allowing HtmlObject to be extended externally
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.
See #4
public void AddFirst(HtmlElement element);
public void AddFirst(HtmlAttribute attribute);
public void AddFirst(HtmlObject attribute);
JavaScript adds to the functionality of HTML pages.
We should add support for the JavaScript tag to enhance the quality of this library.
e.g. <tag attribute=value>
public class HtmlElement : IEquatable<HtmlElement>
{
public void Equals(object other);
public void Equals(HtmElement element);
}
public class HtmlAttribute: IEquatable<HtmlAttribute>
{
public void Equals(object other);
public void Equals(HtmlAttribute attribute);
}
See work in 2.0 branch
Support test library
Requires #23
e.g. <p>Inner text <a href="url">url</a> more inner text</p>
e.g. <p>abc<p>
Is there any table generation sample code ?
e.g. <tag attribute='value'>
public bool HasElement(string tag);
public bool HasAttribute(string tag);
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.