andysylvester / drummer-outline-renderers Goto Github PK
View Code? Open in Web Editor NEWA repo to encourage collaboration on developing outline renderers for the Drummer app from Dave Winer
License: MIT License
A repo to encourage collaboration on developing outline renderers for the Drummer app from Dave Winer
License: MIT License
I copied your script. Created a new OMPL file and executed the script. Executed again per your instructions and for some reason the first node/paragraph is not rendering. I think I may have moved the nodes around so not sure if that is the cause. Here is a link to my OPML source: http://drummer.scripting.com/frankm/testOutlineToHTML.opml
At the moment i don't have time to study your script to see if I can figure out the cause. Just wanted to tile the issue here so not forgetten.
HTML anchor links are not rendering as expected. I selected text in the outline, clicked the link button in Drummer, and entered the URL. I did this in two spots. See the rendered file here: http://drummer.scripting.com/frankm/myOutline.html
View source shows the link was rendered as follows: To use The browser status bar shows that " appears replace by my Drummer url, http://drummer.scripting.com/frankm.
Source OPML: http://drummer.scripting.com/frankm/testOutlineToHTML.opml
I see in the template HTML that idPageTitle and idePageDescription are not being used. Just thinking about how they could be used and I think the simplest is to support the OPML headers title and description.
I see that myOutline.html is Javascript driven.
Based on ledes.opml I've hand converted/rendered (using Drummer copy/paste) the following ledes-sms.html (txt) that's a single file fully static HTML.
ledes-sms.txt
Screenshot of html tags on the left and rendering on the right:
Could your script support that, Andy?
Created a node that I indicated as comment by pressing Ctrl+\ for the purpose of storing/remembering the file name given an edit to prompt for the file name. A future enhancement would be to store the HTML file name in a OPML Header variable. For now I would simply created a comment with the file name so I remember so that the file is overwritten.
A future enhancement would be to check for the node attribute isComment and if true skip/ignore.
Source OPML: http://drummer.scripting.com/frankm/testOutlineToHTML.opml
No doubt you saw but:
Seemed relevant :)
The script currently hardcodes the file name. If one wants to render and host multiple HTML files like a "standard" web site the file names need to be unique. One can simply prompt for a file name, store that in a variable and use that as so:
const url = file.makeFilePublic (htmlFileOut);
A step beyond is to store the file name value as a opmlHeader, perhaps htmlFileName, so that for future edits the script can change for the value and if not null use it.
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.