question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Some templates stop rendering after upgrade 3.6.3 -> 3.7.0

See original GitHub issue

No server-side errors triggered. No client-side errors triggered. An empty template is rendered. Downgrading back to 3.6.3 solved the problem. Details below.

Template

<template name="layoutBlankPublic">
	{{> Template.dynamic template=content}}
</template>

FlowRouter

import { FlowRouter } from 'meteor/ostrio:flow-router-extra';
import { BlazeLayout } from 'meteor/kadira:blaze-layout'

const publicRoutes = FlowRouter.group({
	name: 'public'
});

publicRoutes.route('/login', {
    name: 'login',
    action: function () {
        BlazeLayout.render('layoutBlankPublic', { content: 'login' });
    }
});

Oddly enough, a different layout template DOES work?!

Template

<template name="defaultLayout">
{{#if loggingIn}}
	{{> loading}}
{{else}}
	{{#if authenticated}}
		<div id="wrapper">
			{{> authenticatedNavigation }}
			<div id="page-wrapper" class="gray-bg">
				{{> authenticatedNavbar }}
				{{> Template.dynamic template=content}}
				{{> footer }}
			</div>
		</div>
	{{else}}
        <div id="wrapper">
            <div id="page-wrapper" class="gray-bg">
                {{> publicNavigation }}
                <p>You are not authorized to view this page.</p>
                <p>Please <a href="/login">login</a> to view this page</p>
            </div>
        </div>
	{{/if}}
{{/if}}
</template>

FlowRouter

import { FlowRouter } from 'meteor/ostrio:flow-router-extra';
import { BlazeLayout } from 'meteor/kadira:blaze-layout'

FlowRouter.route( '/dashboard', {
	name: 'dashboard',
	action: function() {
		BlazeLayout.render( 'defaultLayout', { content: 'dashboard' } );
	}
});

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
dr-dimitrucommented, Sep 19, 2019

@RomanBf two different Blaze-based rendering engines.

this.render features:

  • Made with animation performance in mind and respect to requestAnimationFrame
  • Pass and assign data and/or arguments directly to template
  • It’s more “rendering engine” than “templating engine”
  • Up do date, tested with latest Meteor and Blaze releases

BlazeLayout.render features:

0reactions
dr-dimitrucommented, Sep 21, 2019

@cormip @jankapunkt please check latest v3.7.1 release, this issue should be solved.

Feel free to reopen it in case if the issue is still persists on your end.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Known Bugs and User Experience Issues
Issue: An auto-update bug updated automatically to version 3.6.1. Resolution: The issue was fixed. You will get auto-updated to 3.6.2, and then it...
Read more >
undefined method for Spree::Image.styles in 3.6.3 (after ...
This error has appeared after the upgrade from Spree 3.5.0 to 3.6.3. We are currently using Paperclip and have set the environment variable ......
Read more >
Changes — Jinja Documentation (3.0.x)
Calling sync render for an async template uses asyncio.run on Python >= 3.7. This fixes a deprecation that Python 3.10 introduces.
Read more >
Parallax release notes
The Parallax release notes list notable changes, improvements, and additions to the theme. Stay up-to-date with the latest release...
Read more >
Craft Freeform 3.x - Changelog
Updated form re-rendering (via AJAX) to be bypassed if no formatting template is specified in the form builder.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found