(Resolved) How to render the raw value of a tiddler?

Hi,

I’m trying to render the raw value of:

  • $:/SiteTitle
  • $:/SiteUrl
  • {{{ [{$:/language}get[name]] }}}

For this purpose:

<a href='{{$:/SiteUrl}}' lang='{{{ [{$:/language}get[name]] }}}'>{{$:/SiteTitle}}</a>

The expected view-source output is:

<a href='https://example.com' lang='ko'>My Site</a>

But instead I’m getting:

\u003Ca href='{{$:/SiteUrl}}' lang='{{{ [{$:/language}get[name]] }}}'>{{$:/SiteTitle}}\u003C/a>

Then I read and tried:

https://tiddlywiki.com/#WikifyWidget

Now I have this:

<a href='<$wikify name="siteurl" text={{$:/SiteUrl}} ><<siteurl>></$wikify>' lang='<$wikify name="langcode" text={{{ [{$:/language}get[name]] }}} ><<langcode>></$wikify>'><$wikify name="sitetitle" text={{$:/SiteTitle}} ><<sitetitle>></$wikify></a>

I’m still getting raw wikitext instead of the raw value in view-source:

\u003Ca href='\u003C$wikify name=\"siteurl\" text={{$:/SiteUrl}} >\u003C\u003Csiteurl>>\u003C/$wikify>' lang='\u003C$wikify name=\"langcode\" text={{{ [{$:/language}get[name]] }}} >\u003C\u003Clangcode>>\u003C/$wikify>'>\u003C$wikify name=\"sitetitle\" text={{$:/SiteTitle}} >\u003C\u003Csitetitle>>\u003C/$wikify>\u003C/a>

So, I think I also misunderstood what the WikifyWidget is for. :sweat_smile:


I have this test site: https://wikify.tiddlyhost.com

Try this:

<$wikify name=out mode=inline output=html
   text="<a href={{$:/SiteUrl}} lang={{{ [{$:/language}get[name]] }}}>{{$:/SiteTitle}}</a>">
<$codeblock code=<<out>>/>
</$wikify>

The output on your test site is:

<a href="https://wikify.tiddlyhost.com" lang="en-GB">My TiddlyWiki</a>

Note: <$codeblock code=<<out>>/> is only used here to show the contents of <<out>> in order to verify the result.

-e

Ahh, thank you.

So it works but just looks different in view-source. And I also found the ither thing I’m doing wrong, I’m enclosing the transclusions in quotes. :sweat_smile:

Thank you for the out example, it helped a lot!

:bowing_man:t4: