Yes, try adding this as a tiddler:

/*\
title: $:/core/macros/tv-get-export-path
type: application/javascript
module-type: macro

Customize the static output.
\*/
(function() {

  /*jshint node: true, browser: true */
  /*global $tw: false */
  "use strict";

  exports.name = "tv-get-export-path";

  exports.params = [{name: "title"}];

  exports.run = function(title) {
    return encodeURIComponent(title.replace(/\s/g, "-"));
  };

})();

On Tuesday, June 30, 2015 at 10:52:57 PM UTC-4, Suzanne McHale wrote:
>
> Is there a way of writing a macro so dashes (-) are used rather than 
> %-encoded spaces for the static site pages?
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/7a06af2f-3f66-4125-bb84-d95ece74ebd8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to