Questions tagged [html-generation]

61 questions
35
votes
7 answers

Easiest way to turn a list into an HTML table in python?

lets say I have a list like so: ['one','two','three','four','five','six','seven','eight','nine'] and I want to experiment with turning this data into a HTML table of various dimensions: one two three four five six seven eight …
priestc
  • 33,060
  • 24
  • 83
  • 117
27
votes
6 answers

How to generate a static html file from a swagger documentation?

I have created a Swagger documentation with a yaml file under: api/swagger/swagger.yaml Now I want to share a static HTML document with its definition, yet it was stated on the swagger project, that they don't plan to support HTML generation at…
k0pernikus
  • 60,309
  • 67
  • 216
  • 347
15
votes
4 answers

HtmlAgilityPack: how to create indented HTML?

So, I am generating html using HtmlAgilityPack and it's working perfectly, but html text is not indented. I can get indented XML however, but I need HTML. Is there a way? HtmlDocument doc = new HtmlDocument(); // gen html HtmlNode table =…
Petr Abdulin
  • 33,883
  • 9
  • 62
  • 96
15
votes
11 answers

Save the document generated by javascript

Javascript can manipulate the document the browser is displaying, so the following: Will make the browser display a table just like if it was the…
OscarRyz
  • 196,001
  • 113
  • 385
  • 569
10
votes
1 answer

Multiple text nodes in Python's ElementTree? HTML generation

I'm using ElementTree to generate some HTML, but I've run into the problem that ElementTree doesn't store text as a Node, but as the text and tail properties of Element. This is a problem if I want to generate something that would require multiple…
Rob Lourens
  • 15,081
  • 5
  • 76
  • 91
9
votes
5 answers

Pros and cons of fully generating html using javascript

Recently, I have come up with some idea about how to improve the overall performance for a web application in that instead of generating a ready-to-show html page from the web server, why not let it be fully generated in the client side. Doing it…
woraphol.j
  • 1,301
  • 5
  • 14
  • 22
9
votes
1 answer

Export ASP.NET MVC Application Source Code for PhoneGap

My team and I are currently developing an application for both Android and iOS using ASP.NET MVC 4, HTML5, and PhoneGap. The development works perfectly fine; however, one question remains unanswered: What is the recommended approach to generate the…
Marius Schulz
  • 15,976
  • 12
  • 63
  • 97
8
votes
2 answers

How to get Generated Html form HtmlGenericControl

I have a template for Html page, and I need to add its contents dynamically in ASP.NET. I also need to make many instences of template page, depending in data. Its obvious that creating large Html using strings is very dirty way. So I choosed to…
umair.ali
  • 2,714
  • 2
  • 20
  • 30
4
votes
6 answers

What python html generator module should I use in a non-web application?

I'm hacking a quick and dirty python script to generate some reports as static html files. What would be a good module to easily build static html files outside the context of a web application? My goals are simplicity (the HTML will not be very…
Sergio Acosta
  • 11,418
  • 12
  • 62
  • 91
4
votes
1 answer

WPF application which outputs html

I'm creating a WPF (in c#) application that will create html files based on it's output. Is there a way to use the concept of an html 'view' (from the asp.net mvc) in a desktop application without reinventing the wheel? Basically I just want to save…
evan
  • 43
  • 4
3
votes
2 answers

JavaScript to Html

Given a web page with JavaScript code, I would like to generate a resulting html automatically (either via CLI tool OR using some library in some language) For example, given test.html

Timofey
  • 2,478
  • 3
  • 37
  • 53
2
votes
1 answer

What are the tools/sdks available to aid in HTML generation?

I want to write a C# program which can generate a series of HTML pages based on some data grabbed from an external database. Are there any .NET based SDK which enables me to do the HTML generation? Maybe I am searching on the wrong keywords, but…
bbdaffy
  • 21
  • 1
2
votes
5 answers

HTML that's both server-side and javascript generated - how to combine?

I'm usually a creative gal, but right now I just can't find any good solution. There's HTML (say form rows or table rows) that's both generated javascript-based and server-sided, it's exactly the same in both cases. It's generated server-sided when…
Kira M. Backes
  • 530
  • 3
  • 10
2
votes
1 answer

Template system or language for Python (primarily HTML)

I'm looking for a mature, easy-to-use, powerful, stand-alone, "beautiful" template system/language for Python. I'm primarily interested in generating (static) HTML from HTML sources (so Markdown/RST/Textile aren't relevant). There seems to be an…
vicvicvic
  • 6,025
  • 4
  • 38
  • 55
2
votes
1 answer

Looking for a preprocessor to fill in static files

What I'm looking for would allow me to take something like this: index.html.template: <# include ("body.html.template") #> body.html.template: Hello World! <# include("text.txt") #> text.txt: 4 And turn it into…
Chris
  • 5,876
  • 3
  • 43
  • 69
1
2 3 4 5