Skip to content

stevenmilstein/11ty-js-functions-and-shortcodes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Javascript Return Values Containing Shortcode Not Rendering

Try it

Click Stackblitz to install.

  1. From the terminal: npm start
  2. If necessary, change embedded browser port from 3001 to 8080

1. Problem

Notice the shortcode now renders properly whenever it's not the result of a Javascript function.

2. Testing eleventy versions

2.1 Change package.json from:

  "dependencies": {
    "@11ty/eleventy": "^0.12.1"
  }

to:

"dependencies": {
"@11ty/eleventy": "1.0.0-canary.44"
}

2.2 From terminal:

> npm install
> npm start`

4. Regression

Notice the result for _data/globalDataJsonNow.json no longer renders today's date.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published