strapdown icon indicating copy to clipboard operation
strapdown copied to clipboard

Dynamic Content

Open jamiejackson opened this issue 11 years ago • 7 comments
trafficstars

I frequently find myself wanting to be able to modify the DOM content of a strapdown document on the fly. For instance, when creating a SIP, I don't want to create a nearly identical document for each environment. I'd rather create a master document, with placeholders, and have a way to select the environment (say with a select box) which triggers replacing a placeholder with its appropriate value.

Has anyone figured out a decent way to do this?

jamiejackson avatar Mar 17 '14 18:03 jamiejackson

I created this https://github.com/shawncplus/markdown-talk which patches strapdown to allow you to specify the source as a github link shawncplus/bash-classes:historymanipulation.mkd, for example, which it will pull at pageload. It'd be trivial to check for a query parameter instead of looking at the source attribute.

shawncplus avatar Apr 27 '14 01:04 shawncplus

Thanks, @shawncplus, but I guess it's more that I want conditional output rather than conditional source selection.

For instance: At a certain point in the document, show version B of the paragraph instead of version A if, say "?version=B" is added as a URL variable.

jamiejackson avatar Jul 15 '14 14:07 jamiejackson

@shawncplus IMHO being able to load markdown from another location is a very nice feature for strapdown.js ... guys, could be it possible to merge this into strapdown?

javierarilos avatar Oct 05 '15 10:10 javierarilos

Ain't strapdown incredibly sexy because of it's feature-less-ness?

dralletje avatar Oct 05 '15 11:10 dralletje

It is always a complex discussion wether to add, or not, features to any technology... I think it is a very useful and simple addition to strapdown... but is just my opinion :smile_cat:

javierarilos avatar Oct 07 '15 11:10 javierarilos

I might try out the Bootmark fork (which includes external sources) and requesting features there, since this repo isn't getting any love lately.

jamiejackson avatar Aug 31 '16 18:08 jamiejackson

i'll leave this here it's pretty useful bootmark

obedm503 avatar Aug 31 '16 21:08 obedm503