I want to output "You are logged in as [Username]" using i18next for the text and a Jade variable as the actual username, but I can't seem to get them working together.

As far as i can tell, i18n overwrites the WHOLE `<p>`

to show "You are logged in as". The username is only shown, if I put it in a separate `<p>`

, like so:

```
if (user)
p(data-i18n='markup.loggedInAs')
p #{user.username}
```

But then, of course, it gets rendered as a separate `<p>`

, which is not what I want. I want both of them on a single line, ideally inside the same `<p>`

. Is there a trick?

This:

```
if (user)
p(data-i18n='markup.loggedInAs')
| #{user.username}
```

doesn't work. The username is not shown at all :/

Thanks for your help.

Answer:1

The following code passes an argument variable nextId to the IndexedDB Store get method and the corresponding records are returned if the argument passed matches the key of the record. Initially I ...

The following code passes an argument variable nextId to the IndexedDB Store get method and the corresponding records are returned if the argument passed matches the key of the record. Initially I ...

I'm quite new to javascript and can't find the solution. I have the following code. <form class="edit-task-form"> <legend>Create Task</legend> <label>Task</...

I'm quite new to javascript and can't find the solution. I have the following code. <form class="edit-task-form"> <legend>Create Task</legend> <label>Task</...

Any help converting Excel "power of" function to JavaScript? Values are: A1 = 99% A2 = 45 formula is = (A1^A2)*100 results rounded to whole number is 64.

Any help converting Excel "power of" function to JavaScript? Values are: A1 = 99% A2 = 45 formula is = (A1^A2)*100 results rounded to whole number is 64.

- excel power of 2
- excel power of 10
- excel power of e
- excel power of 3
- excel power of symbol
- excel power of 2 formula
- excel power of function
- excel power of number
- excel power of two
- excel power of 4
- excel power of n
- excel power of negative number
- excel power of 2 symbol
- excel power of
- excel power of matrix
- excel power of calculation
- excel of power bi
- excel axis power of 10
- excel formula power of x
- excel formula power of n

I'm trying to scroll the page down when I click a button with an animation to a certain distance, currently, I'm able to scroll down to a certain element but this is not what I want, I want to scroll ...

I'm trying to scroll the page down when I click a button with an animation to a certain distance, currently, I'm able to scroll down to a certain element but this is not what I want, I want to scroll ...

- can't scroll down on certain websites