Git Product home page Git Product logo

drummer-outline-renderers's People

Contributors

andysylvester avatar

Stargazers

 avatar  avatar

Watchers

 avatar

drummer-outline-renderers's Issues

Node not rendering

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 Link rendering issue

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

Enhancement idea: Page title and description

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.

Comment nodes rendering

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

Enhancement idea: file name

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.